UI bugs solved.
Added new ads UI in Home1Fragment and WebSeriesFragment. Updated Ui sizes in Home1Fragment
@@ -8,6 +8,7 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.Intent.ACTION_TIME_TICK
|
||||
import android.content.IntentFilter
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.util.DisplayMetrics
|
||||
import android.view.LayoutInflater
|
||||
@@ -218,6 +219,12 @@ class Home1Fragment : Fragment() {
|
||||
liveTv.performClick()
|
||||
}
|
||||
|
||||
adView.setOnClickListener {
|
||||
startActivity(
|
||||
Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com/"))
|
||||
)
|
||||
}
|
||||
|
||||
more.setOnClickListener {
|
||||
activity?.let {
|
||||
startActivity(
|
||||
|
||||
BIN
app/src/main/res/drawable-hdpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 216 KiB |
BIN
app/src/main/res/drawable-hdpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
app/src/main/res/drawable-hdpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
app/src/main/res/drawable-ldpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
app/src/main/res/drawable-ldpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
app/src/main/res/drawable-ldpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/drawable-mdpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
app/src/main/res/drawable-mdpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
app/src/main/res/drawable-mdpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
app/src/main/res/drawable-xhdpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 361 KiB |
BIN
app/src/main/res/drawable-xhdpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
app/src/main/res/drawable-xhdpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
app/src/main/res/drawable-xxhdpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 736 KiB |
BIN
app/src/main/res/drawable-xxhdpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
app/src/main/res/drawable-xxhdpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_ad_banner_1.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_ad_button.png
Normal file
|
After Width: | Height: | Size: 283 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/img_ad_round_banner.png
Normal file
|
After Width: | Height: | Size: 139 KiB |
@@ -40,7 +40,8 @@
|
||||
|
||||
android:layout_marginTop="5dp"
|
||||
android:fontFamily="@font/exo_2_bold"
|
||||
android:text="@string/more"
|
||||
android:text="@string/home"
|
||||
android:textAllCaps="true"
|
||||
android:textAlignment="center"
|
||||
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -317,8 +317,8 @@
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/web_series"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:contentDescription="@string/web_series"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/img_web_series_t1" />
|
||||
@@ -332,7 +332,7 @@
|
||||
android:text="@string/web_series"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -359,8 +359,8 @@
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/live_tv"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:translationZ="3dp"
|
||||
android:contentDescription="@string/live_tv"
|
||||
android:scaleType="fitXY"
|
||||
@@ -375,7 +375,7 @@
|
||||
android:text="@string/live_tv"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -402,8 +402,8 @@
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/shop"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:translationZ="3dp"
|
||||
android:contentDescription="@string/shop"
|
||||
android:scaleType="fitXY"
|
||||
@@ -418,7 +418,7 @@
|
||||
android:text="@string/shop"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -445,8 +445,8 @@
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/karaoke"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:translationZ="3dp"
|
||||
android:contentDescription="@string/karaoke"
|
||||
android:scaleType="fitXY"
|
||||
@@ -461,7 +461,7 @@
|
||||
android:text="@string/karaoke"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -484,12 +484,12 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
app:layout_constraintTop_toTopOf="@id/g1"
|
||||
app:layout_constraintVertical_bias="0.63">
|
||||
app:layout_constraintVertical_bias="0.6">
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/audio_books"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:translationZ="3dp"
|
||||
android:contentDescription="@string/audio_books"
|
||||
android:scaleType="fitXY"
|
||||
@@ -504,7 +504,7 @@
|
||||
android:text="@string/audio_books"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -531,8 +531,8 @@
|
||||
|
||||
<com.woka.utils.PressableImageView
|
||||
android:id="@+id/play"
|
||||
android:layout_width="@dimen/_75sdp"
|
||||
android:layout_height="@dimen/_62sdp"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_57sdp"
|
||||
android:translationZ="3dp"
|
||||
android:contentDescription="@string/games"
|
||||
android:scaleType="fitXY"
|
||||
@@ -547,7 +547,7 @@
|
||||
android:text="@string/games"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_10ssp" />
|
||||
android:textSize="@dimen/_9ssp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -591,4 +591,28 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.woka.utils.PressableCard
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="@dimen/_70sdp"
|
||||
android:layout_height="@dimen/_70sdp"
|
||||
|
||||
android:translationZ="3dp"
|
||||
app:isHapticEnabled="true"
|
||||
|
||||
android:layout_margin="25dp"
|
||||
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@string/advertisement"
|
||||
android:src="@drawable/img_ad_round_banner">
|
||||
|
||||
</ImageView>
|
||||
|
||||
</com.woka.utils.PressableCard>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -144,7 +144,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/_160sdp"
|
||||
android:contentDescription="@string/image"
|
||||
android:src="@drawable/img_masila_full"
|
||||
android:src="@drawable/img_ad_banner_1"
|
||||
android:scaleType="fitXY"
|
||||
app:layout_collapseMode="parallax"
|
||||
android:layout_gravity="top"
|
||||
@@ -182,6 +182,7 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/trailer_btn"
|
||||
android:visibility="gone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -197,6 +198,15 @@
|
||||
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ad_button"
|
||||
android:visibility="visible"
|
||||
android:layout_width="@dimen/_135sdp"
|
||||
android:layout_height="@dimen/_45sdp"
|
||||
android:contentDescription="@string/advertisement"
|
||||
android:src="@drawable/img_ad_button"
|
||||
android:layout_marginTop="15dp"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.appcompat.widget.Toolbar>
|
||||
|
||||
@@ -313,4 +313,5 @@
|
||||
<string name="please_select_a_subject">Please select a subject</string>
|
||||
<string name="blogs_all_caps">BLOGS</string>
|
||||
<string name="password_is_required">Password is required</string>
|
||||
<string name="advertisement">Advertisement</string>
|
||||
</resources>
|
||||