mirror of https://codeberg.org/gitnex/GitNex.git
100 lines
3.8 KiB
XML
100 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/navHeaderFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/userAvatarBackground"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
android:scaleType="centerCrop"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="bottom"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/userAvatar"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:contentDescription="@string/generalImgContentText"
|
|
tools:srcCompat="@tools:sample/avatars" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/userAccountsFrame"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_gravity="end"
|
|
android:visibility="gone"
|
|
app:cardBackgroundColor="?attr/primaryBackgroundColor"
|
|
app:cardCornerRadius="20dp"
|
|
app:cardElevation="0dp"
|
|
app:contentPaddingLeft="8dp"
|
|
app:contentPaddingRight="8dp"
|
|
tools:visibility="visible">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/userAccounts"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
</FrameLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/userFullname"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/colorWhite"
|
|
android:textIsSelectable="true"
|
|
android:textSize="18sp"
|
|
tools:text="Test user" />
|
|
|
|
<TextView
|
|
android:id="@+id/userEmail"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="start"
|
|
android:textColor="@color/colorWhite"
|
|
android:textIsSelectable="true"
|
|
android:textSize="14sp"
|
|
tools:text="example@example.com" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|