Browse Source

Navigation Drawer UI update

master
Anthony Restaino 11 years ago
parent
commit
2570ee1aec
  1. 20
      res/layout/activity_main.xml

20
res/layout/activity_main.xml

@ -54,7 +54,7 @@
<RelativeLayout <RelativeLayout
android:id="@+id/drawer" android:id="@+id/drawer"
android:layout_width="240dp" android:layout_width="@dimen/navigation_width"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="start" android:layout_gravity="start"
android:background="@color/drawer_background" android:background="@color/drawer_background"
@ -66,10 +66,11 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="@drawable/list_bg"
android:gravity="center_vertical" android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall" android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:textStyle="bold"
android:paddingRight="16dp" android:paddingRight="16dp"
android:text="@string/action_new_tab" android:text="@string/action_new_tab"
android:textAppearance="?android:attr/textAppearanceMedium" android:textAppearance="?android:attr/textAppearanceMedium"
@ -88,8 +89,8 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_above="@+id/lineView" android:layout_above="@+id/lineView"
android:layout_below="@+id/view" android:layout_below="@+id/view"
android:listSelector="@drawable/list_bg"
android:choiceMode="singleChoice" android:choiceMode="singleChoice"
android:divider="#bababa"
android:dividerHeight="1dp" /> android:dividerHeight="1dp" />
<View <View
@ -113,7 +114,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="@drawable/list_bg"
android:clickable="true" > android:clickable="true" >
<ImageView <ImageView
@ -128,17 +129,13 @@
android:src="@drawable/ic_action_back" /> android:src="@drawable/ic_action_back" />
</RelativeLayout> </RelativeLayout>
<View
android:layout_width="1dp"
android:layout_height="48dp"
android:background="#bababa" />
<RelativeLayout <RelativeLayout
android:id="@+id/action_forward" android:id="@+id/action_forward"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1"
android:background="?android:attr/listChoiceBackgroundIndicator" android:background="@drawable/list_bg"
android:clickable="true" > android:clickable="true" >
<ImageView <ImageView
@ -157,7 +154,7 @@
<LinearLayout <LinearLayout
android:id="@+id/right_drawer" android:id="@+id/right_drawer"
android:layout_width="240dp" android:layout_width="@dimen/navigation_width"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"
android:background="@color/drawer_background" android:background="@color/drawer_background"
@ -168,7 +165,7 @@
android:id="@+id/textView1" android:id="@+id/textView1"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="#33b5e5" android:textStyle="bold"
android:gravity="center_vertical" android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall" android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingLeft="16dp" android:paddingLeft="16dp"
@ -186,6 +183,7 @@
android:id="@+id/right_drawer_list" android:id="@+id/right_drawer_list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:listSelector="@drawable/list_bg"
android:divider="#bababa" android:divider="#bababa"
android:dividerHeight="1dp" /> android:dividerHeight="1dp" />
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save