回答
你使用它?
android:orientation="vertical"
請發表您的代碼,
<的LinearLayout 的xmlns:機器人= 「http://schemas.android.com/apk/res/android」 機器人:取向= 「垂直」 機器人:layout_width = 「match_parent」 機器人:layout_height = 「match_parent」 機器人:背景= 「@繪製/ BG」> \t <按鈕 機器人:layout_width = 「match_parent」 機器人:ID = 「@ + ID/badrul」 機器人:文本= 「Badrul鬆革蠟染」 機器人:layout_height = 「wrap_content」 android:layout_alignParentTop =「true」 android:layout_centerHorizontal =「true」> LinearLayout> 無法列出所有的按鍵代碼,空間不足。 – 2012-01-13 12:24:44
看來你已經得到了正確的答案。恭喜! – peanut 2012-01-13 16:40:30
謝謝!是的,我做過 – 2012-01-14 05:10:34
你包裹一切ScrollView
:
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ScrollView>
更多信息http://developer.android.com/reference/android/widget/ScrollView.html
您是否使用了LinearLayout
也許包含的按鈕?或者ScrollView
中沒有包含的任何其他佈局?很可能你的按鈕被繪製出來,它們就在屏幕之外。
包裝你的佈局在ScrollView
像這樣:
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:scrollbars="none" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<!-- your buttons here -->
</LinearLayout>
</ScrollView>
這使得佈局滾動的,所以你可以只向下滾動,看到你的按鈕。
哦,是的,這對我有用。感謝您指出! – 2012-01-13 12:47:20
- 1. 表格佈局:已修復問題
- 2. 修復佈局
- 3. 如何在Android中修復XML佈局?
- 4. Android佈局:可重複使用的組件UI是否可能?
- 5. 在android中是否有任何類似流佈局的佈局?
- 6. Android複雜表格佈局
- 7. Android的複雜佈局
- 8. Android(複雜)日曆佈局
- 9. 如何修復此網頁佈局?
- 10. 修復plot(fevd())函數的佈局
- 11. Android對話框佈局破解如何修復?
- 12. 如何修復Android中的橫向佈局問題?
- 13. 如何在android中正確修復佈局?
- 14. 當滾動條可見時頁面佈局會中斷 - 是否有CSS修復?
- 15. Android顯示重複/複製的佈局?
- 16. Android - 修改XML中的佈局值
- 17. ANDROID:實時修改我的佈局
- 18. Kinect SDK是否已發佈?
- 19. Android:檢查GPS是否正在搜索,已修復或未使用
- 20. Android layoutdisplay,佈局佈局。
- 21. Android:相對佈局佈局
- 22. Android佈局 - 位置佈局
- 23. IASetInputLayout是否檢查是否傳遞已設置的輸入佈局?
- 24. 檢測佈局是否已在視圖中指定?
- 25. 複合佈局是否總是需要它自己的類?
- 26. 是否有可能在android中的一個佈局中的許多佈局?
- 27. 如何修復Android中桌面佈局中單元格的大小android
- 28. ASP.NET部分視圖是否已經加載了佈局,否則標準視圖使用默認佈局
- 29. SQL Compact 4.0和Entity Framework 4.0:實體密鑰是否已修復?
- 30. 聲明後Java中的數組大小是否已修復?
您使用哪種佈局? – Ghost 2012-01-13 09:51:19
請粘貼您的XML,以便我們提供幫助。 – 2012-01-13 09:51:48
使用LinearLayout和