fill_parent和wrap_content的问题
16lz
2021-01-23
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 Studio 打包错误org.gradle.api.InvalidUserDataExcepti
- 编译代码报出Android library projects cannot be launched错误
- Android:常见错误提示
- Ubuntu 13.04 编译环境配置及android 2.3 源代码编译时出现了以
- android之android.os.NetworkOnMainThreadException错误
- android提示错误: The process android.process.acore has stoppe
- Android 出现open failed: EACCES (Permission denied)错误**
- Android requires compiler compliance level 5.0. Please fix p