-6
A
回答
1
您需要添加的xmlns:安卓= “http://schemas.android.com/apk/res/android” 根布局
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
........
</RelativeLayout>
+0
你需要在您的**相对布局**标签中添加名称空间。你不需要记住xmlns:android就像代码一样。只需**按Alt + Enter **并按照指定的说明解决您的问题。 –
0
尝试了这一点:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
//put your radio group here
</LinearLayout>
相关问题
- 1. Android警告 - 忽略InnerClasses属性(jnamed)
- 2. persistence.xml缓存属性警告
- 3. 警告:属性不可用
- 4. 协议属性警告?
- 5. UISlider - IB_DESIGNABLE - 运行时属性警告
- 6. 抑制Xcode警告? “weak_import”属性忽略
- 7. CSS font-family属性IDE(PHPStorm)警告
- 8. 警告: 'regparm' 属性指令忽略
- 9. 性能警告
- 10. Robolectric和Android(警告:ro.control_privapp_permissions没有系统属性值)
- 11. SQLiteDatabase警告的Android
- 12. Android SQLite警告
- 13. 线性布局baselinealigned警告在Android
- 14. 性能警告Processing.js
- 15. GKScore性能警告
- 16. Android Lint contentDescription警告
- 17. Android的HashMap的警告
- 18. android eclipse中的警告
- 19. 棉绒警告的Android
- 20. 警告:未知的DOM属性类。你的意思是className?
- 21. IntelliJ IDEA的“错误属性值的警告:在翻译ATTR
- 22. 如何通过添加属性来警告未经初始化访问属性?
- 23. 抑制MatPlotLib良性警告
- 24. “忽略InnerClasses属性”警告杀害的Eclipse
- 25. HTML Meta的属性 - 标签在eclipse中抛出警告
- 26. “从Graph API 2.9中弃用”FBSDKShareLinkContent属性的警告
- 27. Objective-C中的类级属性(删除警告)
- 28. 警告:无法批量分配受保护的属性:课程
- 29. 关于const属性的函数返回警告
- 30. Rails - 警告:无法批量分配受保护的属性
完成标签第一 –
[请不要发布您的代码为图像。(// meta.stackoverflow.com/q/285551) –