Android Studio如何在屏幕上打印可变内容(数字)

时间:2014-08-20 16:02:03

标签: java android eclipse android-activity android-studio

private EditText InputWiek;     //First input
    private EditText InputTspocz;   //Second input
    private TextView textout;

    float Wiek = InputWiek;
    float Tspocz = InputTspocz;

    int Tmax = 220-Wiek;
    int RT = Tmax-Tspocz;
    int Tburn = 70*RT/100+Tspocz;

    public void buttonOnClick(View v) {

        Button button=(Button) v;

        InputWiek = (EditText) findViewById(R.id.idWiek);
        InputTspocz = (EditText) findViewById(R.id.idTspocz)
        textout = (TextView) findViewById(R.id.txtOutput;
        textout.setText(Tburn.getText()));                    //A little scrap here :/




    }
}

1 个答案:

答案 0 :(得分:1)

您可以使用String.valeuOf(Tburn)