Distribute the service indicator views in the drawer header layout

People have voted, and that was the chosen design.
This commit is contained in:
Mauricio Colli 2020-03-25 09:40:15 -03:00
parent 5169ef1f00
commit 697f0659e2
No known key found for this signature in database
GPG key ID: F200BFD6F29DDD85

View file

@ -66,27 +66,34 @@
android:paddingLeft="6dp" android:paddingLeft="6dp"
android:paddingRight="6dp"> android:paddingRight="6dp">
<ImageView <LinearLayout
android:id="@+id/drawer_header_service_icon" android:layout_width="0dp"
android:layout_width="@dimen/drawer_header_service_icon_size"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="6dp" android:layout_weight="1"
android:layout_marginRight="6dp" android:gravity="center"
android:scaleType="fitCenter" android:orientation="horizontal">
app:tint="@color/drawer_header_font_color"
tools:ignore="ContentDescription"
tools:srcCompat="@drawable/youtube" />
<TextView <ImageView
android:id="@+id/drawer_header_service_view" android:id="@+id/drawer_header_service_icon"
android:layout_width="wrap_content" android:layout_width="@dimen/drawer_header_service_icon_size"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:ellipsize="end" android:layout_marginLeft="6dp"
android:maxLines="1" android:layout_marginRight="6dp"
android:textColor="@color/drawer_header_font_color" android:scaleType="fitCenter"
android:textSize="@dimen/drawer_header_service_title_text_size" app:tint="@color/drawer_header_font_color"
android:textStyle="italic" tools:ignore="ContentDescription"
tools:text="YouTube" /> tools:srcCompat="@drawable/youtube" />
<TextView
android:id="@+id/drawer_header_service_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="@color/drawer_header_font_color"
android:textSize="@dimen/drawer_header_service_title_text_size"
tools:text="YouTube" />
</LinearLayout>
<ImageView <ImageView
android:id="@+id/drawer_arrow" android:id="@+id/drawer_arrow"