您好我是一個新的開發者,我只是想創建自己的一些應用程序。 在我的應用程序我已經把兩個按鍵在底部,這個問題是被顯示在頁面的頂部我的應用程序的名稱和主要頁面是不可見完全,因此在底部的按鈕是不可見的。如何解決這個問題.....應用程序名稱
Q
應用程序名稱
0
A
回答
1
0
您可以使用以下方法來使標題欄(其中應用程序的名稱出現)走開:
requestWindowFeature(Window.FEATURE_NO_TITLE);
說它裏面onCreate()
,只需調用super.onCreate()
避免使用AbsoluteLayout
,並嘗試以下列方式使用RelativeLayout
達到你想要的東西:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mother_container"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button android:id="@+id/btn_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:text="Button Left" />
<Button android:id="@+id/btn_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="Button Rigth" />
</RelativeLayout>
相關問題
- 1. 以應用程序名稱作爲應用程序名稱
- 2. 應用程序名稱或Applet名稱?
- 3. JavaFX應用程序名稱
- 4. IOS應用程序名稱
- 5. Android應用程序名稱
- 6. 應用程序名稱
- 7. 將應用程序版本名稱附加到應用程序名稱
- 8. 重命名IPA應用程序名稱
- 9. 從進程名稱獲取應用程序名稱
- 10. 如何從進程名稱獲取應用程序名稱?
- 11. 更改應用程序商店應用程序名稱
- 12. 爲Facebook應用程序設置「人類」應用程序名稱
- 13. iOS從應用程序名稱獲取應用程序圖標
- 14. 如何爲Sequelize應用程序設置應用程序名稱
- 15. 更改應用程序發佈後的應用程序名稱
- 16. 通過應用程序名稱殺死紗線應用程序
- 17. 應用程序本身的應用程序名稱
- 18. mvc4應用程序,隱藏iis應用程序名稱?
- 19. App Store的應用程序名稱
- 20. 隱藏應用程序名稱
- 21. 段中的應用程序包名稱
- 22. Django包和應用程序名稱
- 23. UIActivityViewController共享應用程序名稱
- 24. Elmah應用程序名稱配置
- 25. 應用程序名稱是Eclipse MainActivity?
- 26. Android應用程序名稱錯誤
- 27. bundelPath沒有應用程序的名稱
- 28. iPhone更改應用程序名稱
- 29. 應用程序名稱更改
- 30. 本地化應用程序名稱
您可以發佈截圖? – fredley