139 lines
5.8 KiB
XML
139 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileProgressBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
tools:visibility="gone">
|
|
|
|
<ProgressBar
|
|
style="?android:attr/progressBarStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:scrollbars="none"
|
|
android:layout_marginBottom="72dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileTopContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:orientation="vertical">
|
|
<com.flaviofaria.kenburnsview.KenBurnsView
|
|
android:id="@+id/profileBannerImage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:scaleType="centerCrop"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="200dp"
|
|
android:layout_marginTop="-200dp"
|
|
android:src="@drawable/linear_gradient_bg"
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/profileUserDataContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="-124dp"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/profileUserAvatarContainer"
|
|
android:layout_width="82dp"
|
|
android:layout_height="82dp"
|
|
android:layout_gravity="center"
|
|
android:backgroundTint="@color/transparent"
|
|
app:cardCornerRadius="64dp">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/profileUserAvatar"
|
|
android:layout_width="82dp"
|
|
android:layout_height="82dp"
|
|
android:layout_gravity="center"
|
|
app:srcCompat="@drawable/ic_round_add_circle_24"
|
|
tools:tint="@color/transparent"
|
|
tools:ignore="ContentDescription,ImageContrastCheck" />
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<TextView
|
|
android:id="@+id/profileUserName"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:textColor="?attr/colorPrimary"
|
|
android:fontFamily="@font/poppins_semi_bold"
|
|
android:text="@string/username"
|
|
android:textSize="18sp" />
|
|
|
|
<Button
|
|
android:id="@+id/followButton"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:enabled="true"
|
|
android:layout_gravity="center"
|
|
android:fontFamily="@font/poppins_bold"
|
|
android:insetTop="0dp"
|
|
android:insetBottom="0dp"
|
|
android:padding="8dp"
|
|
android:text="Follow"
|
|
android:textSize="16sp"
|
|
app:cornerRadius="16dp"
|
|
app:strokeColor="?attr/colorPrimaryContainer"
|
|
tools:ignore="SpeakableTextPresentCheck" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/profileViewPager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:ignore="SpeakableTextPresentCheck" />
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
<nl.joery.animatedbottombar.AnimatedBottomBar
|
|
android:id="@+id/profileNavBar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
android:background="?attr/colorSurface"
|
|
android:padding="0dp"
|
|
app:abb_animationInterpolator="@anim/over_shoot"
|
|
app:abb_indicatorAppearance="round"
|
|
app:abb_indicatorLocation="top"
|
|
app:abb_selectedTabType="text"
|
|
app:abb_textAppearance="@style/NavBarText"
|
|
app:itemActiveIndicatorStyle="@style/BottomNavBar"
|
|
app:itemIconTint="@color/tab_layout_icon"
|
|
app:itemRippleColor="#00000000"
|
|
app:itemTextAppearanceActive="@style/NavBarText"
|
|
app:itemTextAppearanceInactive="@style/NavBarText"
|
|
app:itemTextColor="@color/tab_layout_icon" />
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|