android - How to implement card layout as in new Google Play -
i implement androidy list tile layout new google play below:
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
Post a Comment