android - How to draw rounded rectangle shape items in a listview -


How to draw round rectangular shapes in the list view for each item

You Size . It can be easily done through XML, set Android: Background = "@ Drawable / Rounded_Rose" in your view.

rounded_rows.xml

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Size xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Shape = "Rectangle" & gt; & Lt ;! - View background color - & gt; & Lt; Solid Android: Color = "@Android: Color / White" & gt; & Lt; / Solid & gt; & Lt ;! - Here is the corner radius - & gt; & Lt; Corners Android: Radius = "10dp" & gt; & Lt; / Corners & gt;  


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -