Why can't I set text to an Android TextView?

前端 未结 8 2118
孤城傲影
孤城傲影 2020-12-31 03:04

I\'m having a problem with setting text to a TextView:

TextView android:editable = \"true\".

In my .java it seems like that this should wor

8条回答
  •  余生分开走
    2020-12-31 03:26

    In your java class, set the "EditText" Type to "TextView". Because you have declared a TextView in the layout.xml file

提交回复
热议问题