Android TextView : “Do not concatenate text displayed with setText”

前端 未结 10 1541
小鲜肉
小鲜肉 2020-12-02 04:01

I am setting text using setText() by following way.

prodNameView.setText(\"\" + name);

prodOriginalPriceView.setText(\"\" + String.format(g         


        
10条回答
  •  醉话见心
    2020-12-02 04:40

    Don't Mad, It's too Simple.

    String firstname = firstname.getText().toString();
    String result = "hi "+ firstname +" Welcome Here";
                mytextview.setText(result);
    

提交回复
热议问题