smooth transition between LiveStreamPlayerActivity opening
MoreHomeActivity creation Blogs api integration
BIN
app/src/main/res/drawable-hdpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 713 KiB |
BIN
app/src/main/res/drawable-hdpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 492 KiB |
BIN
app/src/main/res/drawable-ldpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 186 KiB |
BIN
app/src/main/res/drawable-ldpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 198 KiB |
BIN
app/src/main/res/drawable-mdpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 325 KiB |
BIN
app/src/main/res/drawable-mdpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
app/src/main/res/drawable-xhdpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
app/src/main/res/drawable-xhdpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 985 KiB |
BIN
app/src/main/res/drawable-xxhdpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
app/src/main/res/drawable-xxhdpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_masila_tn_small.png
Normal file
|
After Width: | Height: | Size: 3.9 MiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_more_bg.png
Normal file
|
After Width: | Height: | Size: 3.5 MiB |
10
app/src/main/res/drawable/ic_more_up.xml
Normal 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>
|
||||
6
app/src/main/res/drawable/round_bg_5.xml
Normal 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>
|
||||
171
app/src/main/res/layout/activity_more_home.xml
Normal 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>
|
||||
57
app/src/main/res/layout/blog_view_holder.xml
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||