2013-05-03 58 views
0

我在调试我的“hello world”应用程序时遇到了此错误,请参阅Android入门开发教程。这里是我的全activity_main.xml中在'android'包中找不到属性'orientaton'的资源标识符t activity_main.xml

<?xml version="1.0" encoding="utf-8"?> 
    <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:orientaton="horizontal"> 
<EditText android:id="@+id/edit_message" 
    android:layout_weight="1" 
    android:layout_width="0dp" 
    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" /> 

我真的需要一些帮助,这一个考虑,我相信它是按键按键,因为它出现在教程。

回答

3

您纠正了拼写错误orientation - orientat i on,而不是orientaton

+0

修好了!谢谢 – user2342919 2013-05-03 03:00:45

+0

@ user2342919 - 它总是很小 - 很高兴我可以帮助!有一件事将来会有所帮助,那就是尽可能使用自动完成功能 - 在Eclipse中,使用Ctrl + Space自动完成XML标记。 – ianhanniballake 2013-05-03 03:04:25

+1

刚刚我的第一个工作应用程序加载到我的银河标签!我很兴奋。 – user2342919 2013-05-03 03:34:05

相关问题