我是新来的GridView布局GridView控件。你能帮我解决我们如何添加分隔符/分隔符到网格视图,如我们对表 请找到下面的图像添加列边框在android系统
0
A
回答
0
可悲的是没有自动的方式来做到这一点。你可以试试这个。在表格中的每个视图周围设置1或2像素填充,并且您应该有一个边框。
0
要创建这种类型的布局,你必须一帧分配给你的GridView项目。让我们考虑这是你的项目的布局: -
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#00000000" >
<ImageView
android:id="@+id/image_view_product_cell_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image_content_description" />
<RelativeLayout
android:id="@+id/rel_lay_product_image_frame_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/image_view_product_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image_content_description" />
<ImageView
android:id="@+id/image_view_product"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image_content_description" />
<ProgressBar
android:id="@+id/progress_bar_product"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminateDrawable="@drawable/custom_progress_bar"
android:indeterminateDuration="800" />
</RelativeLayout>
<TextView
android:id="@+id/text_view_product_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="center"
android:singleLine="true"
android:textIsSelectable="true" />
<TextView
android:id="@+id/text_view_product_brand"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/text_view_product_title"
android:gravity="center"
android:singleLine="true"
android:textIsSelectable="true" />
在上面的布局您可以将帧分配给GridViewItem并提供所需的保证金。对于具有在右侧和在底部的黑线网格视图项
相关问题
- 1. 添加android系统
- 2. 添加PNG在android系统
- 3. Fitgrid - 在列的边缘添加边框
- 4. 动态添加android系统
- 5. 添加边框列出
- 6. 在SSRS报告的数据栏系列中只添加边框
- 7. 添加边框
- 8. 如何删除闪屏白色底部边框在android系统
- 9. Android龙板820 - 添加系统服务
- 10. 添加到彤彤TextView的android系统
- 11. 如何将系统服务添加到Android框架
- 12. 在UIBarButtonItem中添加边框
- 13. 在Java中添加边框
- 14. Android添加边框到按钮
- 15. 加入android系统
- 16. html添加边框
- 17. 将列表添加到系统属性
- 18. 在android中添加边距
- 19. 下列标题添加边框QTableWidget的
- 20. 添加声音到Android系统声音列表
- 21. 的Android添加插图边框若要列表视图
- 22. 在android系统
- 23. 在android系统
- 24. 在android系统
- 25. 在android系统
- 26. 在android系统
- 27. 在android系统
- 28. 在android系统
- 29. 在android系统
- 30. 在android系统
使用9-补丁图像,还可以使用另一个9膜片用于具有在顶部和左侧黑色linrs网格视图本身 – pskink