mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-30 09:03:50 +01:00
DroidFish: Use a drawer layout instead of the options menu.
This commit is contained in:
parent
db450cf1b1
commit
5df627a69d
8
DroidFish/res/layout/drawer_list_item.xml
Normal file
8
DroidFish/res/layout/drawer_list_item.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:padding="12dp"
|
||||
android:textSize="20sp">
|
||||
</TextView>
|
10
DroidFish/res/layout/left_drawer.xml
Normal file
10
DroidFish/res/layout/left_drawer.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/left_drawer"
|
||||
android:tag="drawer"
|
||||
android:layout_width="280dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="left"
|
||||
android:choiceMode="singleChoice"
|
||||
android:background="#F0282828"
|
||||
android:dividerHeight="1dp" />
|
10
DroidFish/res/layout/right_drawer.xml
Normal file
10
DroidFish/res/layout/right_drawer.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/right_drawer"
|
||||
android:tag="drawer"
|
||||
android:layout_width="280dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
android:choiceMode="singleChoice"
|
||||
android:background="#F0282828"
|
||||
android:dividerHeight="1dp" />
|
Loading…
Reference in New Issue
Block a user