feat(profile page): Stats, Banner animation

This commit is contained in:
aayush262 2024-03-02 23:01:58 +05:30
parent 2837cad762
commit 86ed721796
6 changed files with 412 additions and 149 deletions

View file

@ -28,14 +28,22 @@
android:id="@+id/profileTopContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
tools:visibility="visible"
android:orientation="vertical">
<ImageView
<com.flaviofaria.kenburnsview.KenBurnsView
android:id="@+id/profileBannerImage"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_height="200dp"
android:scaleType="centerCrop"
android:src="@drawable/gradient_background"
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" />
<com.google.android.material.card.MaterialCardView
@ -45,7 +53,7 @@
android:layout_gravity="end"
android:layout_marginTop="-52dp"
android:layout_marginEnd="32dp"
app:cardCornerRadius="40dp">
app:cardCornerRadius="64dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profileUserAvatar"
@ -62,7 +70,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="18dp"
android:layout_marginTop="-32dp"
android:layout_marginTop="-24dp"
android:orientation="vertical"
tools:visibility="visible">
@ -141,7 +149,7 @@
<nl.joery.animatedbottombar.AnimatedBottomBar
android:id="@+id/typeTab"
android:id="@+id/profileNavBar"
android:layout_width="match_parent"
android:layout_height="72dp"
android:layout_gravity="center_horizontal|bottom"