From 99e95fe5d198771af92953a06ffec27389255ce4 Mon Sep 17 00:00:00 2001 From: Prince Raj Date: Wed, 27 Dec 2023 16:28:57 +0530 Subject: [PATCH] feat: add Collapsing toolbar in community, health & leaderboard pages --- .../res/drawable/background_img_small.png | Bin 0 -> 1692 bytes .../main/res/layout/fragment_community.xml | 66 +-- app/src/main/res/layout/fragment_health.xml | 553 +++++++++--------- .../main/res/layout/fragment_leaderboard.xml | 216 +++---- 4 files changed, 416 insertions(+), 419 deletions(-) create mode 100644 app/src/main/res/drawable/background_img_small.png diff --git a/app/src/main/res/drawable/background_img_small.png b/app/src/main/res/drawable/background_img_small.png new file mode 100644 index 0000000000000000000000000000000000000000..183d6491c952455a7581c3b087b3f656d77d4dc8 GIT binary patch literal 1692 zcmeH|*;mpD6vuxk;fibS(=yqlQKp8*NpPoJa!boJJ(6}DO%rQG1Q(RFDbu9QCYM}h zEK5ox7eX@}muPHADp6A*3t62kHN>5vKVshI;Vz%^{XX1#Uv6<&h#yqfS{DESXn;RD z8~{Mc>b_JPqRvPC;0kpCWrX|r0L`y|kf{NjzwnC&Hw;C)9(QS zDyuC40OA~g_C7|4`^?8+k4db0K4$p$kOyA`lvciMaBkjwk-7w9Y|jL>Xg({%YX#uB z_)Q#x$Y(-6a z-G&fT<6;KLs%7pV|HE~l8z#vG4Pfi-yU7s$!2j_-zeasVQq`&k^qPOs@_JSiB{F~E zZTSk#Ce-6u27}qY+7c&U-&$Z?;zWymsA_qVD^|jjsH^8A5y26eqzAWWC;1q&l!7;I zu)hbq>q@j0Cy*RPsEV#4hiU2$E%e5&?c}EAtDZ!wO@CH)bI%^SMT=|pBt_mSNrH4< z4olDFO^$Co?-U?4rtX+yXd{CB#trGbPxlBiyWT?W;IZ#IDo-FfW@5T+fw-xi@%vT` zaK<@uRvK#g+$x6WI%8O%8XY1rx3LXybJFv!sv%lc)#5O4$z0r|pt71&!{0?a16-9t z%ZWpJZ7n21Or*VeDW^{Ar(B&wX+m)^k30`_)(h4;I^QETEOYuQZ&UWSd09MP(2OYL0O3BzgU2@KsCYv0}%(B4Q%Z=W9`M11R>B9^^XSLoy-Zuy}!W4j> z6q~*1;ybBUI4g_xjiNuQ1M4ORb*Ed0sy@u(n#u*vJulI>x@toYclQ#mM;PK_`m^&g zR9RIYToC_I$?>opQB-_vXB16Y77<`3?Z`2#EJtQl9j8Me_t3;SMfT^m#XZL(H_j8hms5?5`_gF@gt0rcT)>HloUoVr{y-808kF*h0WqBtpzgykb34p|a}7 z@seD@>Q zcDM{L@#K_8Q3yH#yXf#5Bqn{JGGW$2A)zB`y28?n=VV4w@Q!igFN2w-bNHhZ;6niMG%X`-m&o| zUvFDv?m#iY*}4PnvzIf`xk?sq!gy}~MRvuyGP!@N+9xMPd!uuO1F;nawu6zz?}F=y z_f6*K7X&xu3B}8TIQX^*B6$6c@MqGv-Ga%)5)-VPk}Pm6;1YShAMW(qt5dp;>n6z% zm=9?QrN0{ALoGa$%RpAJ;pk~$v`_xIv4{<9%vwb)oX5}{H>aPaX$MC62DOQ@S|x@< nuL3`QjZj|L+oA7!eBDsX9(i$f1oc+^QGkF$A?RkGQy2aPsSX3j literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/fragment_community.xml b/app/src/main/res/layout/fragment_community.xml index 3f0083f..212740f 100644 --- a/app/src/main/res/layout/fragment_community.xml +++ b/app/src/main/res/layout/fragment_community.xml @@ -6,60 +6,56 @@ android:layout_height="match_parent" tools:context=".ui.fragment.CommunityFragment"> - - - + android:layout_height="match_parent"> + android:outlineSpotShadowColor="@color/dark_green"> - + android:background="@drawable/background_img_small" + android:importantForAccessibility="no" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> - + android:layout_height="match_parent" + android:orientation="vertical" + app:layout_behavior="@string/appbar_scrolling_view_behavior"> + + + + + - + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_health.xml b/app/src/main/res/layout/fragment_health.xml index ddff6f1..1b501d3 100644 --- a/app/src/main/res/layout/fragment_health.xml +++ b/app/src/main/res/layout/fragment_health.xml @@ -5,301 +5,302 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - + android:layout_height="match_parent"> - - - - - - - - + android:fitsSystemWindows="true" + android:outlineAmbientShadowColor="@color/dark_green" + android:outlineSpotShadowColor="@color/dark_green"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:background="@color/dark_green" + app:layout_scrollFlags="scroll|enterAlways|snap" + app:title="Health" /> + - + - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + > - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + diff --git a/app/src/main/res/layout/fragment_leaderboard.xml b/app/src/main/res/layout/fragment_leaderboard.xml index 38eccaf..4a00b4f 100644 --- a/app/src/main/res/layout/fragment_leaderboard.xml +++ b/app/src/main/res/layout/fragment_leaderboard.xml @@ -1,145 +1,145 @@ - + android:background="@color/backgroundColor"> - - + + - + app:layout_constraintTop_toTopOf="parent" + app:layout_scrollFlags="scroll|enterAlways|snap" + app:title="Leaderboard" /> + + + + - - - - - - - + app:iconifiedByDefault="false" + app:queryHint="Search The LeaderBoard..." /> - + + - + + + android:layout_alignParentStart="true" + android:layout_alignParentEnd="true" + android:layout_marginLeft="10dp" + android:layout_marginTop="10dp" + android:layout_marginRight="10dp" + android:orientation="horizontal"> + + + + + + + - - - - - - - - + android:layout_below="@+id/llUserName" + android:layout_marginStart="10dp" + android:ellipsize="end" + android:maxLines="1" + android:text="ashishgupta9936@gmail.com" + android:textSize="17sp" /> + + + + + - - - - + android:layout_height="wrap_content" + android:layout_below="@id/rankOfUser" + android:clipToPadding="false" + android:paddingTop="16dp" + tools:listitem="@layout/item_leaderboard" /> + + \ No newline at end of file