How to get EditText value and display it on screen through TextView?

前端 未结 11 2002
南旧
南旧 2020-12-05 12:45

I want to get the user input for the EditText view and display it on the screen through TextView when the Button is clicked. I also, w

11条回答
  •  旧巷少年郎
    2020-12-05 13:12

    bb.setOnClickListener(
        new View.OnClickListener()
        {
            public void onClick(View view)
            {
                String s1=tt.getText().toString();
                tv.setText(s1);
            }
        }
    );
    

提交回复
热议问题