Android Programmatically setting button text

后端 未结 4 890
小蘑菇
小蘑菇 2020-12-30 06:42

Does anybody know how to programmatically set the text of a button?

thing is i\'m not calling this from the main layout(setContentView) i\'m calling it in a view tha

4条回答
  •  感情败类
    2020-12-30 06:51

    check R.java files import statement

    are you sure that you have import it of the project you use .. and just format your layout (.xml ) file save it and again type the same statement

提交回复
热议问题