android - How to implement card layout as in new Google Play -


i implement androidy list tile layout new google play below:

new google play list layout don't need implement exact content, tile-like layout of list items. know attributes should set, such color, margin, , how set subtle shadow below each item?

i have following listview

<listview     android:id="@+id/cardlist"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_margintop="6dp"     android:background="@color/light_gray"     android:cachecolorhint="@null"     android:divider="@null"     android:fadingedge="none"     android:listselector="@android:drawable/selector" /> 

and selector.xml

<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android">      <item         android:drawable="@drawable/pressed"         android:state_pressed="true"/>     <item         android:drawable="@drawable/pressed"         android:state_selected="true"/>     <item         android:drawable="@drawable/default"/>  </selector> 

but still not work. problem?

it's basic listview each item implemented using customadapter. take @ link http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -