1.在布局文件中可直接设置TextView和Button的值:
1 android:text=“ ”
也可以在程序中设置:
1 TextView.setView=(“”);
2.通过findViewById查找值
3.程序中的常量最好在string.xml中设置,调用时:
TextView.setView=(R.string.Button);
1.在布局文件中可直接设置TextView和Button的值:
1 android:text=“ ”
也可以在程序中设置:
1 TextView.setView=(“”);
2.通过findViewById查找值
3.程序中的常量最好在string.xml中设置,调用时:
TextView.setView=(R.string.Button);
转载于:https://www.cnblogs.com/zhhda/archive/2012/10/23/2736359.html