Android活动二进制XML文件行:您必须提供layout_width属性 [英] Android activity Binary XML file line : You must supply a layout_width attribute

查看:104
本文介绍了Android活动二进制XML文件行:您必须提供layout_width属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经读过它,但仍然在这里.

I've read about it already, but still it's here.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".TaskEditActivity" >

因此,异常 java.lang.RuntimeException:二进制XML文件第34行:您必须提供layout_width属性.

属性在那里,架构也...解决方案?

Attribute is there, schema too... Solution?

推荐答案

我也建议检查您的调光.您可能会将版式宽度设置为变暗,然后转到它,并且的值像"150"而不是"150dp"(缺少dp)也会导致这种情况(这是我的情况)

Also i recommend check your dimens. You may have layout width in dimens, you go to it and you have value like "150" not "150dp" (missing dp) also cause this (that was my case)

这篇关于Android活动二进制XML文件行:您必须提供layout_width属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆