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