fill_parent和wrap_content的问题
16lz
2021-12-04
Android学习ING,遇到一个错误.
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10dip" android:background="#0000FF"><TextView android:text="请输入用户名:" android:id="@+id/label" android:layout_width="fill_content" android:layout_height="wrap_content" /></RelativeLayout>
报错:
error: Error: String types not allowed (at 'layout_width' with value 'fill_content').
为什么?按照书上的代码打的!实在不知道错在哪儿了!囧!
更多相关文章
- android google map apiKey 相关操作
- PhoneGap Android(安卓)hello android:minSdkVersion="8"
- mac添加android的adb等工具到环境变量
- 小编程(三):用户登录注册界面开发及用户信息管理案例代码详解
- [Android]Android(安卓)Studio获取开发版和发布版的MD5和SHA1
- android项目案例6- 基于Android(安卓)studio的android用户注册
- android第一天
- android项目案例5- 基于Android(安卓)studio的android用户登陆
- [Android]Android(安卓)Studio获取开发版和发布版的MD5和SHA1