Is it possible to make a space between horizontal Listview items?
I try this for listview.
android:divider="#ffff00" android:dividerHeight="10dp"
It's working fine in listview. but I want add divider between horizontal Listview items. How to rectify this Problem?. Share Your Idea?
Set border around your list items in xml file or add custom view as below:
<View
android:layout_height="match_parent"
android:width="1dp"
android:background="#ffff00"
/>
what do you mean by horizontal list view in Android?
If it is customised list then add a view betwwen two items and set the backgroundcolor for the view.
With all respect to @Mihir Shah , updating his answer to match your requirement.
Set border around your list items in xml file or add custom view as below:
<View
android:layout_height="match_parent"
android:width="1dp"
android:background="@android:color/transparent"
/>
This will provide space you require.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.