WIP - implement navigation drawer (slide-in menu)
This commit is contained in:
BIN
mobile/res/drawable-hdpi/drawer_shadow.9.png
Normal file
BIN
mobile/res/drawable-hdpi/drawer_shadow.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 171 B |
BIN
mobile/res/drawable-hdpi/ic_drawer.png
Normal file
BIN
mobile/res/drawable-hdpi/ic_drawer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
mobile/res/drawable-mdpi/drawer_shadow.9.png
Normal file
BIN
mobile/res/drawable-mdpi/drawer_shadow.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 158 B |
BIN
mobile/res/drawable-mdpi/ic_drawer.png
Normal file
BIN
mobile/res/drawable-mdpi/ic_drawer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
mobile/res/drawable-xhdpi/drawer_shadow.9.png
Normal file
BIN
mobile/res/drawable-xhdpi/drawer_shadow.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 B |
BIN
mobile/res/drawable-xhdpi/ic_drawer.png
Normal file
BIN
mobile/res/drawable-xhdpi/ic_drawer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
@ -1,18 +1,33 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<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">
|
||||
|
||||
<com.cradle.iitc_mobile.IITC_WebView
|
||||
android:id="@+id/iitc_webview"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
<ImageView android:id="@+id/imageLoading"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:src="@drawable/iitc" />
|
||||
<com.cradle.iitc_mobile.IITC_WebView
|
||||
android:id="@+id/iitc_webview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/imageLoading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:paddingBottom="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:src="@drawable/iitc"/>
|
||||
|
||||
<!-- The navigation drawer -->
|
||||
<!-- TODO: change color/width? -->
|
||||
|
||||
<ListView
|
||||
android:id="@+id/left_drawer"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start"
|
||||
android:background="#111"
|
||||
android:choiceMode="singleChoice"
|
||||
android:divider="@android:color/transparent"
|
||||
android:dividerHeight="0dp"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
@ -7,6 +7,8 @@
|
||||
<string name="activity_share">Share using…</string>
|
||||
<string name="activity_share_to_clipboard">Copy to clipboard</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="drawer_open">Show navigation menu</string>
|
||||
<string name="drawer_close">Hide navigation menu</string>
|
||||
<string name="reload">Reload IITC</string>
|
||||
<string name="version">Print Version</string>
|
||||
<string name="toggle_fullscreen">Toggle fullscreen</string>
|
||||
|
Reference in New Issue
Block a user