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. 移動行至底部在SQL
- 3. 將標籤移至Xamarin頂部時刪除底部的空白空間.iOS
- 4. 底部的標籤?
- 5. 將xml標記值移至xslt中根標記的底部
- 6. 試圖頁腳移至底部
- 7. 如何將材料標籤移動到底部?
- 8. 將div自動滾動至底部
- 9. 當鼠標移至內部元素時丟失鼠標移動
- 10. Android:底部的標籤
- 11. 標籤組不底部
- 12. 移動NA的底部
- 13. JQuery移動底部空間
- 14. WPF列表框滾動至底部
- 15. 移動底座座標Tkinter
- 16. IOS底部標籤欄標題
- 17. 如何將頭標籤移至EmberJS中的部分與EmberCLI
- 18. 將分支移至新標籤
- 19. 將javascript移至標籤div id
- 20. Android - 更改TextInputLayout的位置浮動標籤(底部浮動標籤)?
- 21. 停止TableView從底部移動頂部
- 22. 浮動標籤底部工作,但頂部不
- 23. 整個頁面向上移動,當我點擊菜單底部的標籤
- 24. 在屏幕底部有標籤的Android?
- 25. 將標籤添加到webview的底部
- 26. 允許DevExpress.XtraTab.XtraTabControl在底部有其標籤
- 27. R corplot作物底部軸標籤
- 28. 底部的窗口標籤消失
- 29. 標籤主機在底部問題
- 30. 標籤在頁面底部編程
@約翰喬訪問這個http://www.androidhive.info/2015/09/android-material-design-working-帶袢/ – 2016-03-07 10:53:49