0
Q
移動標籤至底部
A
回答
1
使用此代碼:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
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"
android:layout_weight="1" >
<LinearLayout
android:id="@+id/ll_tab1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
<LinearLayout
android:id="@+id/ll_tab2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
<LinearLayout
android:id="@+id/ll_tab3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
</FrameLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"/>
</LinearLayout>
</TabHost>
1
使用的FrameLayout
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<RelativeLayout
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<ImageView
android:layout_alignParentRight="true"
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/abc_btn_radio_material" />
<ImageView
android:layout_alignParentLeft="true"
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/abc_btn_check_material" />
</RelativeLayout>
</FrameLayout>
相關問題
- 1. 移動DIV至底部,並滾動
- 2. 從頂端移動的TextView至底部
- 3. 移動行至底部在SQL
- 4. 將標籤移至Xamarin頂部時刪除底部的空白空間.iOS
- 5. 底部的標籤?
- 6. C#從左至右移動標籤
- 7. 將xml標記值移至xslt中根標記的底部
- 8. 試圖頁腳移至底部
- 9. 如何將材料標籤移動到底部?
- 10. Android中的頂部標籤,底部標籤和動作條標籤
- 11. 將div自動滾動至底部
- 12. 當鼠標移至內部元素時丟失鼠標移動
- 13. 標籤組不底部
- 14. 塊標籤邊距底部
- 15. 底部的ActionBar Sherlock標籤
- 16. Android標籤組活動顯示和隱藏底部標籤
- 17. WPF列表框滾動至底部
- 18. JQuery移動底部空間
- 19. 移動NA的底部
- 20. 底部帶有mapview的標籤頂部
- 21. 頂部和底部的標籤欄
- 22. matplotlib colorbar交替頂部底部標籤
- 23. IOS底部標籤欄標題
- 24. 移動底座座標Tkinter
- 25. 動畫製作標題至底部,然後動畫回到頂部並消失
- 26. 如何將頭標籤移至EmberJS中的部分與EmberCLI
- 27. 將分支移至新標籤
- 28. 將javascript移至標籤div id
- 29. 在頂部標籤欄下移動tableview
- 30. 如何讓vim在底部移動光標時自動滾動?
@約翰喬訪問這個http://www.androidhive.info/2015/09/android-material-design-working-帶袢/ – 2016-03-07 10:53:49