请帮助我新的Android应用程序,而我下面是Android开发者网站上的指导,但是当我要运行的代码IAM获取和错误“没有资源标识符发现对于属性layout_width ...线性布局错误资源的android:layout_width
这里是XML代码的副本
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<EditText android:id="@+id/edit_message"
android:Layout_weight="1"
android:Layout_width="wrap_content"
android:Layout_height="wrap_content"
android:hint="@string/edit_message"/>
<Button
android:Layout_width="wrap_content"
android:Layout_height="wrap_content"
android:text="@string/button_send" />
其'layout'不'Layout' – Raghunandan 2014-09-23 09:00:21
使用部份的android:layout_width = “WRAP_CONTENT” 作为@Raghunandan说 – 2014-09-23 09:01:49
我认为有错字在'EditText'和'Button'。在小写字母中使用了'android:layout_width' – 2014-09-23 09:01:59