0
我在android上工作,我想添加標籤小部件到頁面的底部。這是我的XML文件的代碼: - 如何將Tab小部件添加到android中的botton?
<HorizontalScrollView android:id="@+id/ScrollView01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fillViewport="true" android:scrollbars="none">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="0dip" android:layout_marginRight="0dip"
android:layout_alignParentBottom="true"/>
</HorizontalScrollView>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp" />
</RelativeLayout>
通過此代碼tabwidget被添加到佈局的頂部,示於下面的圖: - 請告訴我該如何添加這些「專輯」tabWidget?
預先感謝您...
只是粘貼在你的main.xml –