Skip to content

Commit

Permalink
Added resources used in Navigation Drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
frogermcs committed Jan 31, 2015
1 parent 9737199 commit 4f42f96
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions app/src/main/res/layout/item_global_menu.xml
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:padding="12dp">

<ImageView
android:id="@+id/ivIcon"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginRight="24dp"
android:src="@drawable/ic_global_menu_direct" />

<TextView
android:id="@+id/tvLabel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:lines="1"
android:text="Lorem ipsum"
android:textStyle="bold"
android:paddingTop="4dp"
android:padding="4dp"
android:textColor="#666666"
android:textSize="16sp" />
</LinearLayout>
10 changes: 10 additions & 0 deletions app/src/main/res/layout/item_menu_divider.xml
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="#dddddd" />
</FrameLayout>
43 changes: 43 additions & 0 deletions app/src/main/res/layout/view_global_menu_header.xml
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/btn_context_menu"
android:clickable="true">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:id="@+id/ivUserProfilePhoto"
android:layout_width="@dimen/global_menu_avatar_size"
android:layout_height="@dimen/global_menu_avatar_size"
android:layout_margin="12dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:text="froger_mcs"
android:textColor="@color/style_color_primary"
android:textSize="16sp"
android:textStyle="bold" />

<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_margin="16dp"
android:background="@android:color/transparent"
android:src="@drawable/ic_global_menu_search" />

</LinearLayout>

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="#dddddd" />
</FrameLayout>
1 change: 1 addition & 0 deletions app/src/main/res/values/dimens.xml
Expand Up @@ -6,4 +6,5 @@
<dimen name="default_elevation">8dp</dimen>
<dimen name="comment_avatar_size">56dp</dimen>
<dimen name="user_profile_avatar_size">88dp</dimen>
<dimen name="global_menu_avatar_size">64dp</dimen>
</resources>

0 comments on commit 4f42f96

Please sign in to comment.