안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android
android:background="@color/background"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="30dip"
android:orientation="horizontal">
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_gravit="center">
<TextView
android:text="@string/main_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="25dip"
android:textSize="24.5sp"/>
<Button
android:id="@+id/continue_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/continue_label"/>
<Button
android:id="@+id/new_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/new_game_label"/>
<Button
android:id="@+id/about_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/about_label"/>
<Button
android:id="@+id/exti_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/exit_label"/>
</LinearLayout>
</LinearLayout>
빨간색 부분에 에러가 있다고 하네요
에러문구는
Element type "LinearLayout" must be followed by either attribute specifications, ">" or "/>".
이렇게 돼 있습니다..
헬로 안드로이드2.2 보고 공부중인데요 .. 몇시간동안 들여다 봐도 한글자도 안틀리게 다 맞는데 왜 틀렸다고 나오는지 모르겠네요 ㅠ




저소스 어디보고 따라 치신건가요?
따음표 중앙에 @color/background 말고 #fff000 넣어보세요.
color 가 따로 정의되어 있지 않으셔서 그런 것 같네요.