Android customize drawerlayout



Hee guys,


I've been looking for a while now but can't seem to find a similar idea. I'm currently using a DrawerLayout, got it working and the ListView is as it should be. However I want to have a side bar with all the option of the menu instead of a link in the action bar.


The pictures are generated after getting them out of the database. So there should probably be a ListView involved.


Is it possible to customize it like this and how?


enter image description here


enter image description here



<LinearLayout xmlns:android="http://ift.tt/nIICcg"
xmlns:tools="http://ift.tt/LrGmb4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >

<com.yourguideapps.curacaoapp.customViews.InterceptingDrawerLayout
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" >

<FrameLayout
android:id="@+id/fragmentContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#00ff00" />

<ListView
xmlns:android="http://ift.tt/nIICcg"
android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="left"
android:background="@color/menu"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="1dp" />
</com.yourguideapps.curacaoapp.customViews.InterceptingDrawerLayout>

No comments:

Post a Comment