안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<LixmnearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_sidth="fill_parent"
android:layout_heighy="fill_parent"
>
<TabHost
android:id="@+id/tabHost"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="64dip">
<AnalogClock
android:id="@+id/tab1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</AnalogClock>
<DigitalClock
android:id="@+id/tab2"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</DigitalClock>
</FrameLayout>
</TabHost>
</LinearLayout>
<LixmnearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_sidth="fill_parent"
android:layout_heighy="fill_parent"
>
<TabHost
android:id="@+id/tabHost"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="64dip">
<AnalogClock
android:id="@+id/tab1"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</AnalogClock>
<DigitalClock
android:id="@+id/tab2"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</DigitalClock>
</FrameLayout>
</TabHost>
</LinearLayout>




글의 마지막 줄에 오류의 이유가 다 나와있습니다. linearlayout입니다.
참고로 구글 번역기를 쓰시더라도 자신이 이해한 부분을 쓰셔야지 저런 식으로 copy & paste를 하시면 오히려 더 헷갈립니다.
밑의 글들을 다 봤는데 안드로이드 책이라도 보면서 좀 공부하신 후에 안되는 부분을 올리시는 게 좋을 거 같습니다. 에러나 오류의 수준을 떠나서 오타의 문제니까요.