0
A
回答
3
不,你沒有。要獲得這種類型的用戶界面,您只需要分別剪切所有圖像並使用Adapter
並膨脹您的自定義佈局。
在你的情況下,你需要創建一個關閉圖標圖像,把它放在一個ImageView中,並將其對齊到任何你想要的位置。
0
希望這將有助於
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="#00000000" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_margin="20dp" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="fill_parent"
android:layout_margin="1dp"
android:background="@drawable/show_alert_round"
android:layout_height="wrap_content"
android:src="@drawable/ic_launcher" />
</RelativeLayout>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@drawable/cross_button" />
相關問題
- 1. 視圖左上角的GMSMarker圖標(iOS)
- 2. 隱藏圖像上的關閉圖標
- 3. 如何使視圖上的關閉圖標(紅色x)?
- 4. touchesBegan關閉視圖
- 5. 關閉smartpart視圖
- 6. 標題在移動視圖中關閉
- 7. 左上角的ConstraintLayout視圖
- 8. 關閉視圖狀態標籤上的斜線?
- 9. 設置標籤上的視圖關閉 - xCode storyboard
- 10. 如何用角上方的關閉按鈕創建視圖?
- 11. 在iPad上打開新視圖,並關閉現有視圖。
- 12. Eclipse在視圖上調用ViewPart saveState視圖關閉
- 13. 按鈕圖標:圓形關閉圖標
- 14. 動態更改搜索視圖的關閉圖標 - android
- 15. 圖像內的關閉圖標
- 16. 快速關閉視圖
- 17. 關閉一些視圖
- 18. 關閉彈窗視圖
- 19. openlayers關閉bird's視圖
- 20. 關閉動畫視圖
- 21. 關閉視圖控制器
- 22. 關閉模態視圖
- 23. iPhone視圖剪切關閉
- 24. wxPython帶有wx.CAPTION風格的框架,左上角的圖標和關閉框?
- 25. SWRevealViewController按導航後退按鈕時關閉左側視圖
- 26. UIImagePickerController關閉圖像選擇上的父視圖
- 27. jQuery fancyBox關閉圖標
- 28. 打開/關閉圖標
- 29. 關閉圖標不出現
- 30. JDialog關閉圖標查詢?
你檢查這http://stackoverflow.com/questions/8982678/how-to-have-activity-in-android-with-a-close - 按鈕,在最頂級的角落 – Android