Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fda383ac authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Try by removing the relative layout

parent d539dcee
Loading
Loading
Loading
Loading
Loading
+1 −67
Original line number Diff line number Diff line
@@ -30,72 +30,6 @@
                android:layout_height="wrap_content"
                android:orientation="vertical">

                <RelativeLayout
                    android:id="@+id/header_view"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="?attr/colorAccent"
                    android:visibility="gone"
                    android:theme="@style/AppTheme">

                    <androidx.appcompat.widget.AppCompatImageView
                        android:layout_width="match_parent"
                        android:layout_height="164dp"
                        android:contentDescription="@null"
                        android:scaleType="centerCrop"
                        app:srcCompat="@drawable/background" />

                    <androidx.appcompat.widget.AppCompatImageView
                        android:id="@+id/current_account_image"
                        android:layout_width="@dimen/avatar_size"
                        android:layout_height="@dimen/avatar_size"
                        android:layout_gravity="center_vertical"
                        android:layout_marginStart="@dimen/header_padding"
                        android:layout_marginLeft="@dimen/header_padding"
                        android:layout_marginTop="46dp"
                        android:contentDescription="@string/app_name"
                        app:srcCompat="@mipmap/ic_launcher" />

                    <TextView
                        android:id="@+id/app_name"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@id/current_account_image"
                        android:layout_marginStart="@dimen/header_padding"
                        android:layout_marginLeft="@dimen/header_padding"
                        android:layout_marginTop="6dp"
                        android:layout_marginEnd="@dimen/header_padding"
                        android:layout_marginRight="@dimen/header_padding"
                        android:ellipsize="end"
                        android:shadowColor="@color/fg_default"
                        android:shadowDx="0.5"
                        android:shadowDy="0"
                        android:shadowRadius="2"
                        android:text="@string/app_name_long"
                        android:textColor="@android:color/white"
                        android:textSize="14sp"
                        android:textStyle="bold" />

                    <TextView
                        android:id="@+id/account"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/app_name"
                        android:layout_marginStart="@dimen/header_padding"
                        android:layout_marginLeft="@dimen/header_padding"
                        android:layout_marginEnd="@dimen/header_padding"
                        android:layout_marginRight="@dimen/header_padding"
                        android:ellipsize="end"
                        android:maxLines="1"
                        android:shadowColor="@color/fg_default"
                        android:shadowDx="0.5"
                        android:shadowDy="0"
                        android:shadowRadius="2"
                        android:textColor="@android:color/white"
                        android:textSize="12sp"
                        tools:text="user@nextcloud.example.com" />
                </RelativeLayout>

                <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/navigationList"
                    android:layout_width="match_parent"