Specific Listview -> Android -


Is anyone aware of creating similar list views? How to divide the line? Image:

Thanks for the reply

something like

Rows.xml:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; RelativeLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: orientation = "horizontal" & gt; & Lt; ImageView Android: Android: layout_width = "40dip" Android: layout_heahat = "40dip" Android: Layout_AlpingPrennanLft = "True" Android: src = "@Drawable / Icon" /> Android: Android: layout_toRightOf = "@ + id / icon1" and lieutenant; Text: Android: Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: Layout _ LeftFof = "@ + ID / Icon 2" Android: Android: Text = "Some Text" /> Android: Android: layout_heid = "40dip" Android: layout_alignParentRight = "true" Android: src = "@drawable / icon" /> & Lt; ImageView Android: ID = "@ + ID / Icon 2" & lt; / RelativeLayout & gt;  

Then populate the ListView with your data (which you use, which use the adapter, here is an example for a simple cursor adapter):

< Pre> cursor c = getContentResolver (). Query (yuri, empty, empty, empty, empty, empty); SimpleCursorAdapter cursor adapter = new SimpleCarrier adapter (this, R. layout.urre, c, new string [] {"icon", "text", "icon2"}, new int [] {R.id.icon1, R.id .text, RID.con2});

Comments