<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />我现在只能显示 hello_world 把hello_world换成其它文字就报错,求什么原因!
纠结啊!Androidtextview
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />我现在只能显示 hello_world 把hello_world换成其它文字就报错,求什么原因!
纠结啊!Androidtextview
解决方案 »
- android 变量定义与赋值
- android Webview PostUrl httpheaders问题
- 后台程序上线的便宜去处
- Android客户端不能接收到PC服务器Socket返回的数据
- Scoket服务器不能反复接收数据
- android 同一个Activity动态显示不同内容
- 添加联系人
- 在java main函数中能运行,放在一个activity中就不行了。
- monkeyrunner 通过id获取控件
- android中调用traceroute,显示到达目标IP的经过的路由器。该怎样实现
- 一个activity中包含多个fragment的退出问题
- 求大神帮忙看下 handler 出错 ,看不懂出错信息 是不是空指针
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/abc" />
都不行!是不是装的有问题?
最简单的:把@string/hello_world 整个换掉,譬如换成 hello android 如android:text="hello android"
第二种,在res目录下的values下的String文件中模仿hello_world,定义另外一个字符串,另起一个名字,再把这句改为android:text="@string/你定义的字符串标识",这样就没问题了
这么写
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="abc" />
就好了