diff options
Diffstat (limited to 'res/layout/app_drawer_item.xml')
-rw-r--r-- | res/layout/app_drawer_item.xml | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/res/layout/app_drawer_item.xml b/res/layout/app_drawer_item.xml index d8b3eb43e..03ca60a00 100644 --- a/res/layout/app_drawer_item.xml +++ b/res/layout/app_drawer_item.xml @@ -30,28 +30,9 @@ android:layout_alignBottom="@+id/drawer_item_flow" android:background="@color/app_drawer_drag_background" /> - <TextView - android:id="@+id/custom_title" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textColor="@android:color/white" - android:textSize="@dimen/drawer_custom_title_text_size" - android:layout_marginStart="@dimen/drawer_custom_title_margin_start" - android:layout_marginTop="@dimen/drawer_custom_title_margin_top" - android:includeFontPadding="false" - android:fontFamily="roboto-light" - android:text="@string/recommendations_title" - android:visibility="gone" /> - - <ImageView - android:id="@+id/custom_title_icon" - android:layout_width="@dimen/drawer_custom_icon_size" - android:layout_height="@dimen/drawer_custom_icon_size" - android:layout_marginEnd="@dimen/drawer_custom_icon_margin_end" - android:layout_marginTop="@dimen/drawer_custom_icon_margin_top" - android:layout_alignParentEnd="true" - android:src="@drawable/triangle_icon" - android:visibility="gone" /> + <include + android:id="@+id/custom_header_layout" + layout="@layout/app_drawer_item_custom_header" /> <LinearLayout android:id="@+id/drawer_item_flow" @@ -59,7 +40,7 @@ android:layout_toEndOf="@+id/drawer_item_title" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_below="@id/custom_title" + android:layout_below="@id/custom_header_layout" android:orientation="horizontal" /> <View @@ -75,17 +56,17 @@ android:id="@id/drawer_item_title" android:layout_width="@dimen/drawer_header_text_char_width" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/drawer_header_text_margin_top_default" + android:layout_marginTop="@dimen/drawer_header_text_margin_top" android:layout_marginBottom="@dimen/drawer_header_text_margin_bottom" android:layout_marginStart="@dimen/drawer_header_text_margin_start" - android:layout_alignTop="@id/custom_title" + android:layout_alignTop="@id/custom_header_layout" android:layout_alignWithParentIfMissing="true" android:layout_alignBottom="@id/drawer_item_flow" android:includeFontPadding="false" android:gravity="center" android:singleLine="true" autofit:minTextSize="@dimen/drawer_header_text_min_text_size" - android:textSize="@dimen/drawer_header_text_size_default" + android:textSize="@dimen/drawer_header_text_size" android:fontFamily="sans-serif-light" android:textColor="@android:color/white" android:shadowRadius="@dimen/drawer_header_text_shadow_radius" |