Android listview background -


i implementing list view android.

beautiful list view

without worrying selectors , thin strip on left of each item, background layout drawable list items be:

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">     <stroke android:width="1dp" android:color="#000000" />     <corners         android:bottomrightradius="27dp"         android:toprightradius="27dp" /> </shape> 

and i'm calling list_border.xml , resides in drawable folder.

i have tried set background listview

<?xml version="1.0" encoding="utf-8"?> <listview xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@android:id/list"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingleft="@dimen/list_padding"     android:paddingright="@dimen/list_padding"     android:divider="@drawable/list_border"/> 

and background each list item

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:divider="@drawable/list_border" >      <imageview         android:id="@+id/menu_icon"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignparentleft="true"         android:layout_alignparenttop="true"         android:src="@drawable/arrow1_e" />      <org.bitbucket.infovillafoundation.denko.customui.myanmartextview         android:id="@+id/menu_text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_torightof="@id/menu_icon" /> </relativelayout> 

but listview has not changed reflect new background. wrong it?

for listview setting divider not background. check , rectify it


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -