Showing posts with label How to create divider for ListView with rounded corners. Show all posts
Showing posts with label How to create divider for ListView with rounded corners. Show all posts

Friday, July 5, 2013

[android help] Android - How to create divider for ListView with rounded corners


Android - How to create divider for ListView with rounded corners


Android - How to create divider for ListView with rounded corners - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I want to give my ListView rounded corners and some padding. Here is my style:










But when I create a divider its width is not from one end to the other but looks like this:


enter image description here


I create the divider like this:



...
android:divider="@color/bordeaux"
android:dividerHeight="1px" />


Any ideas how to tell the divider to strech from one end to the other?


Thanks!





























For round corners I use








android:width="2dp"
android:color="#cccccc" />

android:bottom="0dp"
android:left="5dp"
android:right="5dp"
android:top="5dp" />

android:bottomLeftRadius="7dp"
android:bottomRightRadius="7dp"
android:topLeftRadius="7dp"
android:topRightRadius="7dp" />




For separator I use this in the layout item xml



android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="#cccccc" />



















default






Read more

stackoverflow.comm



Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...