smooth transition between LiveStreamPlayerActivity opening

MoreHomeActivity creation

Blogs api integration
This commit is contained in:
2024-05-31 20:27:01 +05:30
parent 5bc2b44bc1
commit 78f3cd85e6
33 changed files with 483 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="25dp"
android:height="25dp"
android:viewportWidth="25"
android:viewportHeight="25">
<path
android:pathData="M12.5,25C5.602,25 0,19.397 0,12.5C0,5.602 5.602,0 12.5,0C19.397,0 25,5.602 25,12.5C25,19.397 19.397,25 12.5,25ZM12.5,23.913C18.809,23.913 23.913,18.809 23.913,12.5C23.913,6.191 18.809,1.087 12.5,1.087C6.191,1.087 1.087,6.191 1.087,12.5C1.087,18.809 6.191,23.913 12.5,23.913ZM6.946,14.674C6.968,14.68 6.991,14.687 7.014,14.691C7.18,14.704 7.343,14.642 7.456,14.521L12.5,9.477L17.544,14.521C17.761,14.738 18.109,14.738 18.325,14.521C18.542,14.304 18.542,13.956 18.325,13.74L12.891,8.305C12.789,8.199 12.646,8.139 12.5,8.139C12.354,8.139 12.211,8.199 12.109,8.305L6.675,13.74C6.524,13.88 6.464,14.092 6.522,14.292C6.579,14.489 6.743,14.638 6.946,14.674Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
</vector>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="5dp"/>
</shape>

View File

@@ -0,0 +1,171 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".home.MoreHomeActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/img_more_bg"
android:contentDescription="@string/image"
android:scaleType="fitXY"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:translationZ="1dp"
android:layout_marginTop="@dimen/_30sdp"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="15dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<com.woka.utils.PressableImageView
android:id="@+id/more"
android:layout_width="25dp"
android:layout_height="wrap_content"
android:contentDescription="@string/more"
android:scaleType="fitXY"
android:src="@drawable/ic_more_up" />
<TextView
android:id="@+id/more_txt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:fontFamily="@font/exo_2_bold"
android:text="@string/more"
android:textAlignment="center"
android:textColor="@color/white"
/>
<TextView
android:id="@+id/coming_soon_txt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/coming_soonn_on_woka"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_16ssp"
android:layout_marginTop="15dp"
android:layout_marginBottom="5dp"
/>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="5dp"
android:layout_marginTop="5dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/_100sdp"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="15dp"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="@dimen/_100sdp"
android:src="@drawable/img_masila_tn_small"
android:contentDescription="@string/masila"
android:scaleType="fitXY"
/>
<com.woka.utils.PressableCard
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/round_25"
android:backgroundTint="@color/color_primary"
android:layout_centerInParent="true"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/play_trailer"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:layout_marginHorizontal="15dp"
android:layout_marginVertical="10dp"
/>
</com.woka.utils.PressableCard>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/masila"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/color_primary"
android:textSize="@dimen/_12ssp"
android:layout_marginStart="15dp"
android:layout_marginVertical="10dp"
/>
</LinearLayout>
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/blogs"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/white"
android:textSize="@dimen/_16ssp"
android:layout_marginTop="15dp"
android:layout_marginBottom="5dp"
/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_blogs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
android:orientation="horizontal"
tools:listitem="@layout/blog_view_holder"
android:layout_marginVertical="5dp"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,57 @@
<?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="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/round_bg_5"
android:backgroundTint="@color/white"
android:layout_marginEnd="15dp"
android:elevation="3dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="@dimen/_120sdp"
android:layout_height="@dimen/_80sdp"
android:layout_marginHorizontal="10dp"
android:layout_marginTop="10dp"
app:cardElevation="0dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="5dp">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image"
android:src="@color/black"
/>
</androidx.cardview.widget.CardView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Sabak Degi Naani: The Lessons of a Wise Grandmother"
android:fontFamily="@font/exo_2_bold"
android:textColor="@color/color_primary"
android:layout_marginTop="10dp"
android:layout_marginStart="10dp"
android:layout_marginBottom="10dp"
android:ems="9"
/>
</LinearLayout>
</com.woka.utils.PressableCard>

View File

@@ -124,11 +124,20 @@
app:layout_constraintBottom_toTopOf="@id/g1"
app:layout_constraintTop_toBottomOf="@id/profile_image">
<ImageView
android:id="@+id/player_view_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/image"
android:translationZ="0dp"
/>
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/player_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:resize_mode="fill"
android:translationZ="1dp"
/>
</androidx.cardview.widget.CardView>

View File

@@ -551,6 +551,7 @@
app:layout_constraintStart_toStartOf="parent">
<com.woka.utils.PressableImageView
android:id="@+id/more"
android:layout_width="25dp"
android:layout_height="wrap_content"
android:contentDescription="@string/more"

View File

@@ -116,4 +116,8 @@
<string name="woka_fm">वोका एफएम</string>
<string name="games">खेल</string>
<string name="coming_soonn_on_woka">जल्द ही Woka पर आ रहा है</string>
<string name="woka_live_tv">वोका लाइव टीवी</string>
<string name="blogs">ब्लॉग</string>
<string name="masila">मासिला</string>
<string name="play_trailer">ट्रेलर चलाएं</string>
</resources>

View File

@@ -15,4 +15,6 @@
<color name="morning_status">#a3e1d3</color>
<color name="afternoon_status">#11b3fe</color>
<color name="night_status">#443682</color>
<color name="more_bg">#cbe16f</color>
</resources>

View File

@@ -136,4 +136,6 @@
<string name="coming_soonn_on_woka">Coming soonn on Woka</string>
<string name="woka_live_tv">WOKA LIVE TV</string>
<string name="blogs">BLOGS</string>
<string name="masila">MASILA</string>
<string name="play_trailer">PLAY TRAILER</string>
</resources>