读书人

Android最最最初级编程

发布时间: 2013-12-07 22:19:20 作者: rapoo

Android最最最初级编程求助
<RelativeLayout 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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >

<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/Android_sudoku" />

<Button
android:id="@+id/button2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/continue_label" />

<Button
android:id="@+id/button4"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button2"
android:layout_below="@+id/button2"
android:text="@string/new_game_label" />

<Button
android:id="@+id/button3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button4"
android:layout_below="@+id/button4"
android:text="@string/about_label" />

<Button
android:id="@+id/button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button3"
android:layout_below="@+id/button3"
android:layout_heitht="wrap_content"
android:text="@string/exit_label" />


</RelativeLayout>


DescriptionResourcePathLocationType
error: No resource identifier found for attribute 'layout_heitht' in package 'android'activity_main.xml/Suduku/res/layoutline 39Android AAPT Problem

求教大侠,我跟着书做的,到了这一步做不下去了……

[解决办法]
layout_heitht这个属性你写错了,应该写成layout_height

读书人网 >Android

热点推荐