Anthony Restaino
10 years ago
12 changed files with 337 additions and 215 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:shareInterpolator="false"> |
||||
<translate android:fromYDelta="-50%" android:toYDelta="0" |
||||
android:interpolator="@android:anim/decelerate_interpolator" |
||||
android:duration="@android:integer/config_shortAnimTime"/> |
||||
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" |
||||
android:interpolator="@android:anim/decelerate_interpolator" |
||||
android:duration="@android:integer/config_shortAnimTime" /> |
||||
</set> |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:shareInterpolator="false"> |
||||
<translate android:fromYDelta="0" android:toYDelta="-50%" |
||||
android:interpolator="@android:anim/accelerate_interpolator" |
||||
android:duration="@android:integer/config_shortAnimTime"/> |
||||
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" |
||||
android:interpolator="@android:anim/accelerate_interpolator" |
||||
android:duration="@android:integer/config_shortAnimTime" /> |
||||
</set> |
@ -0,0 +1,61 @@
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/right_drawer" |
||||
android:layout_width="@dimen/navigation_width" |
||||
android:layout_height="match_parent" |
||||
android:layout_gravity="end" |
||||
android:background="@color/drawer_background" |
||||
android:clickable="true" |
||||
android:fitsSystemWindows="true" |
||||
android:orientation="vertical" > |
||||
|
||||
<RelativeLayout |
||||
android:id="@+id/bookmark_title" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="?attr/actionBarSize" |
||||
android:background="?attr/listBackground" |
||||
android:clickable="true" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal" > |
||||
|
||||
<ImageView |
||||
android:id="@+id/starIcon" |
||||
android:layout_width="24dp" |
||||
android:layout_height="24dp" |
||||
android:layout_alignParentLeft="true" |
||||
android:layout_centerVertical="true" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:contentDescription="Favicon" |
||||
android:gravity="center_vertical" |
||||
android:src="@drawable/ic_action_star" > |
||||
</ImageView> |
||||
|
||||
<TextView |
||||
android:id="@+id/text2" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerVertical="true" |
||||
android:layout_toRightOf="@+id/starIcon" |
||||
android:gravity="center_vertical" |
||||
android:maxLines="1" |
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall" |
||||
android:text="@string/action_bookmarks" |
||||
android:textAppearance="?android:attr/textAppearanceListItemSmall" |
||||
android:textColor="@color/black" /> |
||||
</RelativeLayout> |
||||
|
||||
<View |
||||
android:layout_width="fill_parent" |
||||
android:layout_height="1dp" |
||||
android:background="@color/gray_list_bg" /> |
||||
|
||||
<ListView |
||||
android:id="@+id/right_drawer_list" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:divider="#bababa" |
||||
android:dividerHeight="1dp" |
||||
android:listSelector="?attr/listBackground" /> |
||||
|
||||
</LinearLayout> |
@ -0,0 +1,122 @@
@@ -0,0 +1,122 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:id="@+id/left_drawer" |
||||
android:layout_width="@dimen/navigation_width" |
||||
android:layout_height="match_parent" |
||||
android:layout_gravity="start" |
||||
android:background="@color/drawer_background" |
||||
android:clickable="true" |
||||
android:fitsSystemWindows="true" |
||||
android:orientation="vertical" > |
||||
|
||||
<RelativeLayout |
||||
android:id="@+id/new_tab_button" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="?attr/actionBarSize" |
||||
android:layout_alignParentTop="true" |
||||
android:background="?attr/listBackground" |
||||
android:gravity="center_vertical" |
||||
android:orientation="horizontal" > |
||||
|
||||
<ImageView |
||||
android:id="@+id/plusIcon" |
||||
android:layout_width="24dp" |
||||
android:layout_height="24dp" |
||||
android:layout_alignParentLeft="true" |
||||
android:layout_centerVertical="true" |
||||
android:layout_marginLeft="16dp" |
||||
android:layout_marginRight="16dp" |
||||
android:contentDescription="Favicon" |
||||
android:gravity="center_vertical" |
||||
android:src="@drawable/ic_action_plus" > |
||||
</ImageView> |
||||
|
||||
<TextView |
||||
android:id="@+id/text1" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerVertical="true" |
||||
android:layout_toRightOf="@+id/plusIcon" |
||||
android:gravity="center_vertical" |
||||
android:maxLines="1" |
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall" |
||||
android:text="@string/action_new_tab" |
||||
android:textAppearance="?android:attr/textAppearanceListItemSmall" |
||||
android:textColor="@color/black" /> |
||||
</RelativeLayout> |
||||
|
||||
<View |
||||
android:id="@+id/view" |
||||
android:layout_width="fill_parent" |
||||
android:layout_height="1dp" |
||||
android:layout_below="@+id/new_tab_button" |
||||
android:background="@color/gray_list_bg" /> |
||||
|
||||
<ListView |
||||
android:id="@+id/left_drawer_list" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:layout_above="@+id/lineView" |
||||
android:layout_below="@+id/view" |
||||
android:choiceMode="singleChoice" |
||||
android:dividerHeight="1dp" |
||||
android:listSelector="?attr/listBackground" /> |
||||
|
||||
<View |
||||
android:id="@+id/lineView" |
||||
android:layout_width="fill_parent" |
||||
android:layout_height="1dp" |
||||
android:layout_above="@+id/linearLayout1" |
||||
android:background="@color/gray_list_bg" /> |
||||
|
||||
<LinearLayout |
||||
android:id="@+id/linearLayout1" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="48dp" |
||||
android:layout_alignParentBottom="true" |
||||
android:baselineAligned="false" |
||||
android:orientation="horizontal" |
||||
android:weightSum="2" > |
||||
|
||||
<RelativeLayout |
||||
android:id="@+id/action_back" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:background="?attr/listBackground" |
||||
android:clickable="true" > |
||||
|
||||
<ImageView |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerInParent="true" |
||||
android:contentDescription="@string/action_back" |
||||
android:paddingBottom="4dp" |
||||
android:paddingLeft="4dp" |
||||
android:paddingRight="4dp" |
||||
android:paddingTop="4dp" |
||||
android:src="@drawable/ic_action_back" /> |
||||
</RelativeLayout> |
||||
|
||||
<RelativeLayout |
||||
android:id="@+id/action_forward" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:layout_weight="1" |
||||
android:background="?attr/listBackground" |
||||
android:clickable="true" > |
||||
|
||||
<ImageView |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_centerInParent="true" |
||||
android:contentDescription="@string/action_forward" |
||||
android:paddingBottom="4dp" |
||||
android:paddingLeft="4dp" |
||||
android:paddingRight="4dp" |
||||
android:paddingTop="4dp" |
||||
android:src="@drawable/ic_action_forward" /> |
||||
</RelativeLayout> |
||||
</LinearLayout> |
||||
|
||||
</RelativeLayout> |
Loading…
Reference in new issue