MoreHomeActivity re-arrangements of sizes in layout.

Notifications activity, adapter - dummy data
This commit is contained in:
2024-06-12 16:38:35 +05:30
parent 976238d1f3
commit 1cbfde4cd4
12 changed files with 293 additions and 26 deletions

View File

@@ -56,16 +56,18 @@
android:text="@string/coming_soonn_on_woka"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_14ssp"
android:textSize="@dimen/_13ssp"
android:layout_marginTop="15dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:layout_marginHorizontal="15dp"
android:visibility="gone"
/>
<androidx.cardview.widget.CardView
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -91,7 +93,7 @@
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/_100sdp"
android:layout_height="match_parent"
android:src="@drawable/img_masila_tn_small"
android:contentDescription="@string/masila"
android:scaleType="fitXY"
@@ -148,9 +150,9 @@
android:text="@string/blogs"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_14ssp"
android:textSize="@dimen/_13ssp"
android:layout_marginTop="15dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:layout_marginHorizontal="15dp"
@@ -175,9 +177,9 @@
android:text="@string/woka_songs"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_14ssp"
android:textSize="@dimen/_13ssp"
android:layout_marginTop="15dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:layout_marginHorizontal="15dp"

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_primary_dark"
tools:context=".home.notifications.NotificationsActivity">
<ImageView
android:id="@+id/back_btn"
android:layout_width="@dimen/_27sdp"
android:layout_height="@dimen/_25sdp"
android:contentDescription="@string/back_btn"
android:src="@drawable/ic_arrow_back_full"
android:scaleType="fitXY"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:translationZ="1dp"
android:layout_marginStart="15dp"
android:layout_marginTop="20dp"
app:tint="@color/white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:translationZ="1dp"
android:text="@string/notifications"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_13ssp"
android:layout_marginStart="10dp"
app:layout_constraintStart_toEndOf="@id/back_btn"
app:layout_constraintTop_toTopOf="@id/back_btn"
app:layout_constraintBottom_toBottomOf="@id/back_btn"
/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_notifications"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/notification_view_holder"
android:layout_marginTop="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/back_btn"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<com.woka.utils.PressableCard xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="@dimen/_150sdp"
android:layout_height="@dimen/_130sdp"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/round_bg_5"
@@ -21,8 +21,8 @@
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="@dimen/_120sdp"
android:layout_height="@dimen/_80sdp"
android:layout_width="@dimen/_110sdp"
android:layout_height="@dimen/_70sdp"
android:layout_marginHorizontal="10dp"
android:layout_marginTop="10dp"
@@ -51,6 +51,7 @@
tools:text="Sabak Degi Naani: The Lessons of a Wise Grandmother and this is extr"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/color_primary"
android:textSize="12sp"
android:layout_marginTop="10dp"
android:layout_marginStart="10dp"

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_marginHorizontal="15dp"
android:layout_marginBottom="10dp"
app:cardCornerRadius="5dp"
app:cardBackgroundColor="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:orientation="vertical">
<TextView
android:id="@+id/days_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="12 days ago"
android:fontFamily="@font/exo_2"
android:textColor="@color/color_primary_dark"
android:maxLines="1"
android:ellipsize="end"
/>
<TextView
android:id="@+id/body_txt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="This is the text that will appear as a text on the notificationn card"
android:fontFamily="@font/exo_2_medium"
android:textColor="@color/color_primary_dark"
android:layout_marginTop="3dp"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>

View File

@@ -165,4 +165,5 @@
<string name="do_you_want_to_exit_from_the_woka_app">Do you want to exit from the WOKA app?</string>
<string name="_00_00">00:00</string>
<string name="slash">/</string>
<string name="notifications">Notifications</string>
</resources>