마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

탭넣는중 오류가 났습니다. 도와주세요

0 추천

<TabHost
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
<LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp">
<TapWidget
    android:id="@android:id/taps"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:weightSum="4" />
<FrameLayout
    android:id="@android:id/tabcontent"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp" />
</LinearLayout>
</TabHost>

 

위 메인xml을 작성하니

Rendering Problems이 생기네요

Exception raised during rendering:

TapHost requires a TabWidget with id "android:id/taps"

 

라고 오류가 뜨는데 어떻해야할까요 ㅠㅠ

 

intmagic (220 포인트) 님이 2015년 1월 8일 질문

1개의 답변

0 추천
 
채택된 답변

 android:id="@android:id/taps" 

->>

 android:id="@android:id/tabs"

노예의집 (23,370 포인트) 님이 2015년 1월 8일 답변
intmagic님이 2015년 1월 17일 채택됨
...