java - Designing The ListView in DrawerLayout -


i have drawerlayout , working well. i'd have design 1 highlighted orange. selected item on listview have background effect. approaches attain one. background image or transparent image covers item? thanks

i found tutorial. purpose of post find resolve on this.

enter image description here

not sure how on xml.

<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.drawerlayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:layout_gravity="start"     >      <framelayout         android:id="@+id/content_frame"         android:layout_width="match_parent"         android:layout_height="match_parent" >     </framelayout>      <listview         android:id="@+id/left_drawer"         android:layout_width="240dp"         android:layout_height="match_parent"         android:layout_gravity="start"         android:choicemode="singlechoice"         android:divider="@android:color/transparent"         android:dividerheight="0dp"         android:background="#111"/>  </android.support.v4.widget.drawerlayout> 

a transparent background listview , png image desired effect list item you. e.g :

     <listview        android:id="@+id/list"        android:layout_width="match_parent"        android:layout_height="match_parent"        android:background="@null" /> 

and layout list_item should have png desired effect background. e.g:

    <linearlayout       android:id="@+id/list_item_parent_layout"       android:layout_height = "wrap_content"       android:layout_width ="wrap_content"       android:background ="@drawable/desired_png" >        <!-- place ever views want  -->      </linearlayout>  

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -