small UI fixes

This commit is contained in:
Bnyro 2022-07-07 22:40:32 +02:00
parent c199d42116
commit 0622672e4c
3 changed files with 7 additions and 9 deletions

View File

@ -40,7 +40,6 @@ object LocaleHelper {
}
fun getDetectedCountry(context: Context, defaultCountryIsoCode: String): String {
detectSIMCountry(context)?.let {
return it
}

View File

@ -20,12 +20,12 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp"
android:layout_toEndOf="@id/subscription_channel_image"
android:ellipsize="end"
android:maxLines="1"
android:text="Channel Name"
android:textSize="16dp" />
android:textSize="16sp" />
<com.google.android.material.button.MaterialButton
android:id="@+id/subscription_subscribe"
@ -35,7 +35,7 @@
android:layout_alignParentEnd="true"
android:backgroundTint="?attr/colorOnPrimary"
android:text="@string/unsubscribe"
android:textColor="?android:attr/textColorPrimary"
android:textSize="11dp"
android:textColor="@android:color/white"
android:textSize="11sp"
app:cornerRadius="20dp" />
</RelativeLayout>

View File

@ -66,7 +66,7 @@
android:id="@+id/channel_subs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_gravity="start"
android:text="@string/app_name"
android:textSize="12sp" />
@ -76,11 +76,10 @@
android:id="@+id/channel_subscribe"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_gravity="center_horizontal"
android:backgroundTint="?attr/colorOnPrimary"
android:drawableLeft="@drawable/ic_bell_small"
android:drawableTint="?android:attr/textColorPrimary"
android:drawableStart="@drawable/ic_bell_small"
android:drawableTint="@android:color/white"
android:text="@string/subscribe"
android:textColor="?android:attr/textColorPrimary"
android:textSize="11sp" />