Navbar header was hiding name
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/navigation_drawer_header"
android:layout_width="match_parent"
android:layout_height="@dimen/nav_drawer_header_height">
android:gravity="center"
android:background="@color/primary_dark"/>
-
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/toolbar_top_padding"
android:layout_margin="16dp"
- android:paddingBottom="8dp"
- android:orientation="vertical"
- android:layout_gravity="bottom"
- >
+ android:orientation="vertical">
<ImageView
- android:layout_width="56dp"
- android:layout_height="56dp"
android:id="@+id/user_picture"
- android:contentDescription="@string/avatar"
- />
+ android:layout_width="72dp"
+ android:layout_height="72dp"
+ android:contentDescription="@string/avatar" />
<TextView
+ android:id="@+id/user_real_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:id="@+id/user_real_name"
- android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
- android:textColor="#DEDEDE"
- android:layout_marginTop="16dp"
- />
+ android:layout_marginTop="8dp"
+ android:textAppearance="@style/TextAppearance.AppCompat.Body2"
+ android:textColor="#DEDEDE" />
<TextView
+ android:id="@+id/user_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:id="@+id/user_name"
- android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
- android:textColor="#DEDEDE"
- android:layout_marginTop="16dp"
- />
+ android:textAppearance="@style/TextAppearance.AppCompat.Body1"
+ android:textColor="#DEDEDE" />
</LinearLayout>
