나는 안드로이드에서 탭 표시 줄을 사용하고 있습니다.안드로이드의 하단에 탭 막대를 설정하는 방법은 무엇입니까?
기본적으로 맨 위에 표시됩니다.
아래쪽에 표시하고 싶습니다.
누군가가이 작업을 수행하는 방법을 설명해 주시겠습니까?
나는 안드로이드에서 탭 표시 줄을 사용하고 있습니다.안드로이드의 하단에 탭 막대를 설정하는 방법은 무엇입니까?
기본적으로 맨 위에 표시됩니다.
아래쪽에 표시하고 싶습니다.
누군가가이 작업을 수행하는 방법을 설명해 주시겠습니까?
이 링크를 확인하시기 바랍니다.
탭 위젯 위에 콘텐츠 레이아웃을 배치하기 만하면됩니다. 자세한 정보는 다음 링크를 참조하십시오. TabWidget에 대한 "true"로 layout_alignParentBottom = 트릭을 수행합니다 How to align your TabHost at the bottom of the screen
이 안드로이드 추가 : Android: Tabs at the BOTTOM
<?xml version="1.0" encoding="utf-8"?>
<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"
android:padding="1dp" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="5dp" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
</RelativeLayout>>
</TabHost>
ActionBarActivity에서 TabHost를 사용할 수 있습니까? –