<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/mobile"
/>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button"
android:id="@+id/button"
/>
</LinearLayout>
下划线部分错误
error: Error: No resource found that matches the given name (at 'text' with value '@string/
button').我是新手,刚开始学习, 不知道这是什么错误, 在线等,,,,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
<EditText android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/mobile"
/>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button"
android:id="@+id/button"
/>
</LinearLayout>
下划线部分错误
error: Error: No resource found that matches the given name (at 'text' with value '@string/
button').我是新手,刚开始学习, 不知道这是什么错误, 在线等,,,,
解决方案 »
- 原创源码(集电子书阅读,电子杂志,电子相册功能一体)
- 多表联合查询能实现么?
- 用程序直接连接和断掉网络,是否可行
- 急!Android POST图片问题,网上的资料都参考过了都不行
- 求json传送数据给Android 手机端反斜线的解决办法
- 自定义viewgroup的FadingEdge属性问题
- 在杭州 广州 这两个地方。。android 开发工资是多少?
- android开发遇到问题了
- Android SharedPreferences有时出现无法保存数据
- Android Studio里报错ERROR: Failed to resolve:
- 如何设置Android开机动画,并让其持续5秒钟?(求源码)
- 请怎么让程序进入睡眠状态后不锁画面?
这句是引用res/values/string.xml中的button属性,自己添加上去就行了
怎么定义, 给一个例子。谢谢了 。
然后在里面写上5L的那句。
<string name="button">按钮名称</string>
<string name="button">按钮名称</string>