mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-16 07:20:59 +00:00
Merge branch 'shorts-tab' of gitlab.futo.org:videostreaming/grayjay into shorts-tab
This commit is contained in:
commit
82f214f155
16 changed files with 355 additions and 79 deletions
|
@ -120,6 +120,7 @@ class ShortView : FrameLayout {
|
||||||
private val creatorThumbnail: CreatorThumbnail
|
private val creatorThumbnail: CreatorThumbnail
|
||||||
private val channelName: TextView
|
private val channelName: TextView
|
||||||
private val videoTitle: TextView
|
private val videoTitle: TextView
|
||||||
|
private val platformIndicator: PlatformIndicator
|
||||||
|
|
||||||
private val likeContainer: FrameLayout
|
private val likeContainer: FrameLayout
|
||||||
private val dislikeContainer: FrameLayout
|
private val dislikeContainer: FrameLayout
|
||||||
|
@ -188,6 +189,7 @@ class ShortView : FrameLayout {
|
||||||
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
||||||
channelName = findViewById(R.id.channel_name)
|
channelName = findViewById(R.id.channel_name)
|
||||||
videoTitle = findViewById(R.id.video_title)
|
videoTitle = findViewById(R.id.video_title)
|
||||||
|
platformIndicator = findViewById(R.id.short_platform_indicator)
|
||||||
|
|
||||||
likeContainer = findViewById(R.id.like_container)
|
likeContainer = findViewById(R.id.like_container)
|
||||||
dislikeContainer = findViewById(R.id.dislike_container)
|
dislikeContainer = findViewById(R.id.dislike_container)
|
||||||
|
@ -219,6 +221,7 @@ class ShortView : FrameLayout {
|
||||||
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
||||||
channelName = findViewById(R.id.channel_name)
|
channelName = findViewById(R.id.channel_name)
|
||||||
videoTitle = findViewById(R.id.video_title)
|
videoTitle = findViewById(R.id.video_title)
|
||||||
|
platformIndicator = findViewById(R.id.short_platform_indicator)
|
||||||
|
|
||||||
likeContainer = findViewById(R.id.like_container)
|
likeContainer = findViewById(R.id.like_container)
|
||||||
dislikeContainer = findViewById(R.id.dislike_container)
|
dislikeContainer = findViewById(R.id.dislike_container)
|
||||||
|
@ -250,6 +253,7 @@ class ShortView : FrameLayout {
|
||||||
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
||||||
channelName = findViewById(R.id.channel_name)
|
channelName = findViewById(R.id.channel_name)
|
||||||
videoTitle = findViewById(R.id.video_title)
|
videoTitle = findViewById(R.id.video_title)
|
||||||
|
platformIndicator = findViewById(R.id.short_platform_indicator)
|
||||||
|
|
||||||
likeContainer = findViewById(R.id.like_container)
|
likeContainer = findViewById(R.id.like_container)
|
||||||
dislikeContainer = findViewById(R.id.dislike_container)
|
dislikeContainer = findViewById(R.id.dislike_container)
|
||||||
|
@ -280,6 +284,7 @@ class ShortView : FrameLayout {
|
||||||
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
creatorThumbnail = findViewById(R.id.creator_thumbnail)
|
||||||
channelName = findViewById(R.id.channel_name)
|
channelName = findViewById(R.id.channel_name)
|
||||||
videoTitle = findViewById(R.id.video_title)
|
videoTitle = findViewById(R.id.video_title)
|
||||||
|
platformIndicator = findViewById(R.id.short_platform_indicator)
|
||||||
|
|
||||||
likeContainer = findViewById(R.id.like_container)
|
likeContainer = findViewById(R.id.like_container)
|
||||||
dislikeContainer = findViewById(R.id.dislike_container)
|
dislikeContainer = findViewById(R.id.dislike_container)
|
||||||
|
@ -334,6 +339,7 @@ class ShortView : FrameLayout {
|
||||||
|
|
||||||
onVideoUpdated.subscribe {
|
onVideoUpdated.subscribe {
|
||||||
videoTitle.text = it?.name
|
videoTitle.text = it?.name
|
||||||
|
platformIndicator.setPlatformFromClientID(it?.id?.pluginId)
|
||||||
creatorThumbnail.setThumbnail(it?.author?.thumbnail, true)
|
creatorThumbnail.setThumbnail(it?.author?.thumbnail, true)
|
||||||
channelName.text = it?.author?.name
|
channelName.text = it?.author?.name
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,8 @@ class ShortsFragment : MainFragment() {
|
||||||
|
|
||||||
// we just completely reset the data structure so we want to tell the adapter that
|
// we just completely reset the data structure so we want to tell the adapter that
|
||||||
@SuppressLint("NotifyDataSetChanged")
|
@SuppressLint("NotifyDataSetChanged")
|
||||||
override fun onShown(parameter: Any?, isBack: Boolean) {
|
override fun onShownWithView(parameter: Any?, isBack: Boolean) {
|
||||||
super.onShown(parameter, isBack)
|
super.onShownWithView(parameter, isBack)
|
||||||
|
|
||||||
if (parameter is Triple<*, *, *>) {
|
if (parameter is Triple<*, *, *>) {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
|
|
11
app/src/main/res/drawable/button_shadow.xml
Normal file
11
app/src/main/res/drawable/button_shadow.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:shape="oval">
|
||||||
|
<gradient
|
||||||
|
android:centerX="50%"
|
||||||
|
android:centerY="50%"
|
||||||
|
android:endColor="#00FFFFFF"
|
||||||
|
android:gradientRadius="35%p"
|
||||||
|
android:startColor="#40FFFFFF"
|
||||||
|
android:type="radial" />
|
||||||
|
</shape>
|
9
app/src/main/res/drawable/desktop_comments.xml
Normal file
9
app/src/main/res/drawable/desktop_comments.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M6.31516 18.2609C6.86932 17.8571 7.58672 17.754 8.23108 17.9859C9.36947 18.3983 10.6453 18.6346 12.0028 18.6346C17.3596 18.6346 20.938 15.1765 20.938 11.7613C20.938 8.3462 17.3596 4.88809 12.0028 4.88809C6.64594 4.88809 3.06755 8.3462 3.06755 11.7613C3.06755 13.136 3.60022 14.4591 4.60114 15.5932C4.97058 16.0099 5.151 16.5597 5.10805 17.1182C5.04791 17.8957 4.86319 18.6088 4.62262 19.2403C5.35291 18.9009 5.95861 18.5229 6.31516 18.2652V18.2609ZM1.91628 20.005C1.9936 19.889 2.06663 19.773 2.13536 19.657C2.56494 18.9439 2.97304 18.0074 3.05466 16.955C1.76592 15.4901 1.00557 13.6987 1.00557 11.7613C1.00557 6.82549 5.92854 2.82611 12.0028 2.82611C18.077 2.82611 23 6.82549 23 11.7613C23 16.6972 18.077 20.6966 12.0028 20.6966C10.409 20.6966 8.89693 20.4217 7.53087 19.9276C7.01967 20.3014 6.18629 20.8126 5.19826 21.2422C4.54959 21.5257 3.81072 21.7834 3.04607 21.9338C3.0117 21.9424 2.97734 21.9467 2.94297 21.9553C2.75396 21.9896 2.56924 22.0197 2.37593 22.0369C2.36733 22.0369 2.35445 22.0412 2.34586 22.0412C2.12677 22.0626 1.90769 22.0755 1.6886 22.0755C1.40937 22.0755 1.16022 21.908 1.05282 21.6503C0.945429 21.3925 1.00557 21.1004 1.19888 20.9028C1.37501 20.7224 1.53395 20.529 1.6843 20.3229C1.75733 20.224 1.82607 20.1252 1.8905 20.0264C1.8948 20.0179 1.89909 20.0136 1.90339 20.005H1.91628Z"/>
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/desktop_gear.xml
Normal file
9
app/src/main/res/drawable/desktop_gear.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M13.7562 3.3125C13.24 1.5625 10.76 1.5625 10.2437 3.3125L10.1187 3.7375C10.0416 3.99949 9.90682 4.2409 9.72424 4.44402C9.54166 4.64713 9.31594 4.80681 9.06362 4.91133C8.8113 5.01585 8.53878 5.06258 8.26606 5.04807C7.99333 5.03356 7.72731 4.9582 7.4875 4.8275L7.1 4.615C5.49625 3.7425 3.7425 5.49625 4.61625 7.09875L4.8275 7.4875C5.385 8.5125 4.85625 9.78875 3.7375 10.1187L3.3125 10.2437C1.5625 10.76 1.5625 13.24 3.3125 13.7562L3.7375 13.8813C3.99949 13.9584 4.2409 14.0932 4.44402 14.2758C4.64713 14.4583 4.80681 14.6841 4.91133 14.9364C5.01585 15.1887 5.06258 15.4612 5.04807 15.7339C5.03356 16.0067 4.9582 16.2727 4.8275 16.5125L4.615 16.9C3.7425 18.5037 5.49625 20.2575 7.09875 19.3837L7.4875 19.1725C7.72731 19.0418 7.99333 18.9664 8.26606 18.9519C8.53878 18.9374 8.8113 18.9841 9.06362 19.0887C9.31594 19.1932 9.54166 19.3529 9.72424 19.556C9.90682 19.7591 10.0416 20.0005 10.1187 20.2625L10.2437 20.6875C10.76 22.4375 13.24 22.4375 13.7562 20.6875L13.8813 20.2625C13.9584 20.0005 14.0932 19.7591 14.2758 19.556C14.4583 19.3529 14.6841 19.1932 14.9364 19.0887C15.1887 18.9841 15.4612 18.9374 15.7339 18.9519C16.0067 18.9664 16.2727 19.0418 16.5125 19.1725L16.9 19.385C18.5037 20.2575 20.2575 18.5037 19.3837 16.9012L19.1725 16.5125C19.0418 16.2727 18.9664 16.0067 18.9519 15.7339C18.9374 15.4612 18.9841 15.1887 19.0887 14.9364C19.1932 14.6841 19.3529 14.4583 19.556 14.2758C19.7591 14.0932 20.0005 13.9584 20.2625 13.8813L20.6875 13.7562C22.4375 13.24 22.4375 10.76 20.6875 10.2437L20.2625 10.1187C20.0005 10.0416 19.7591 9.90682 19.556 9.72424C19.3529 9.54166 19.1932 9.31594 19.0887 9.06362C18.9841 8.8113 18.9374 8.53878 18.9519 8.26606C18.9664 7.99333 19.0418 7.72731 19.1725 7.4875L19.385 7.1C20.2575 5.49625 18.5037 3.7425 16.9012 4.61625L16.5125 4.8275C16.2727 4.9582 16.0067 5.03356 15.7339 5.04807C15.4612 5.06258 15.1887 5.01585 14.9364 4.91133C14.6841 4.80681 14.4583 4.64713 14.2758 4.44402C14.0932 4.2409 13.9584 3.99949 13.8813 3.7375L13.7562 3.3125ZM12 15.6625C11.0286 15.6625 10.0971 15.2766 9.41022 14.5898C8.72337 13.9029 8.3375 12.9714 8.3375 12C8.3375 11.0286 8.72337 10.0971 9.41022 9.41022C10.0971 8.72337 11.0286 8.3375 12 8.3375C12.971 8.3375 13.9023 8.72324 14.5889 9.40985C15.2755 10.0965 15.6613 11.0277 15.6613 11.9987C15.6613 12.9698 15.2755 13.901 14.5889 14.5876C13.9023 15.2743 12.971 15.66 12 15.66V15.6625Z"/>
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/desktop_refresh.xml
Normal file
9
app/src/main/res/drawable/desktop_refresh.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M4.8338 12.6821H2C2 15.083 2.93455 17.5131 4.7735 19.2991C8.48155 22.9003 14.5109 22.9003 18.219 19.2991C21.927 15.6978 21.927 9.8421 18.219 6.24085C16.5307 4.60125 14.33 3.7229 12.0992 3.57651V1L4.8338 5.06971L12.0992 9.1687V6.32869C13.6065 6.4458 15.0536 7.08993 16.1991 8.20251C18.8219 10.7205 18.8219 14.8194 16.1991 17.3374C13.6065 19.8846 9.38596 19.8846 6.79334 17.3374C5.46688 16.0784 4.80365 14.351 4.8338 12.6821Z"/>
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/desktop_share.xml
Normal file
9
app/src/main/res/drawable/desktop_share.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M11.2046 1.70818C11.4156 1.50196 11.7017 1.38611 12 1.38611C12.2983 1.38611 12.5844 1.50196 12.7954 1.70818L16.1704 5.00821C16.3753 5.21568 16.4887 5.49354 16.4861 5.78196C16.4836 6.07038 16.3653 6.34628 16.1567 6.55023C15.9481 6.75418 15.6659 6.86987 15.371 6.87237C15.076 6.87488 14.7918 6.764 14.5796 6.56363L13.125 5.14131V15.686C13.125 15.9778 13.0065 16.2576 12.7955 16.4639C12.5845 16.6701 12.2984 16.786 12 16.786C11.7016 16.786 11.4155 16.6701 11.2045 16.4639C10.9935 16.2576 10.875 15.9778 10.875 15.686V5.14131L9.42037 6.56363C9.2082 6.764 8.92402 6.87488 8.62905 6.87237C8.33408 6.86987 8.05191 6.75418 7.84333 6.55023C7.63475 6.34628 7.51643 6.07038 7.51387 5.78196C7.5113 5.49354 7.6247 5.21568 7.82963 5.00821L11.2046 1.70818ZM3 11.286C3 10.7025 3.23705 10.1429 3.65901 9.73033C4.08097 9.31774 4.65326 9.08596 5.25 9.08596H7.5C7.79837 9.08596 8.08452 9.20185 8.2955 9.40814C8.50647 9.61443 8.625 9.89423 8.625 10.186C8.625 10.4777 8.50647 10.7575 8.2955 10.9638C8.08452 11.1701 7.79837 11.286 7.5 11.286H5.25V21.1861H18.75V11.286H16.5C16.2016 11.286 15.9155 11.1701 15.7045 10.9638C15.4935 10.7575 15.375 10.4777 15.375 10.186C15.375 9.89423 15.4935 9.61443 15.7045 9.40814C15.9155 9.20185 16.2016 9.08596 16.5 9.08596H18.75C19.3467 9.08596 19.919 9.31774 20.341 9.73033C20.7629 10.1429 21 10.7025 21 11.286V21.1861C21 21.7696 20.7629 22.3292 20.341 22.7417C19.919 23.1543 19.3467 23.3861 18.75 23.3861H5.25C4.65326 23.3861 4.08097 23.1543 3.65901 22.7417C3.23705 22.3292 3 21.7696 3 21.1861V11.286Z"/>
|
||||||
|
</vector>
|
11
app/src/main/res/drawable/desktop_thumb_down.xml
Normal file
11
app/src/main/res/drawable/desktop_thumb_down.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/transparent"
|
||||||
|
android:pathData="M9 14.3L5 14.3C4.68082 14.2887 4.36901 14.201 4.09064 14.0444C3.81228 13.8879 3.57546 13.6669 3.4 13.4C3.21079 13.1453 3.08491 12.8492 3.03274 12.5362C2.98058 12.2232 3.00363 11.9023 3.1 11.6L5.5 4.40002C5.8 3.50002 6 3.00002 7.4 3.00002C9.4 3.00002 11.6 3.70002 13.5 4.30002L15 4.70003L15 14.5C13.4053 16.1761 11.9971 18.0203 10.8 20C10.7 20.4 10.3 20.7 9.9 20.9L8.7 20.9C8.3 20.8 8 20.5 7.7 20.2L7.5 18.9L9 14.3ZM19.8 14L17 14L17 6.00002C17 5.46959 17.2107 4.96088 17.5858 4.58581C17.9609 4.21074 18.4696 4.00002 19 4.00002C19.5304 4.00002 20.0391 4.21074 20.4142 4.58581C20.7893 4.96088 21 5.46959 21 6.00002L21 12.8C21 13.5 20.5 14 19.8 14Z"
|
||||||
|
android:strokeColor="@color/white"
|
||||||
|
android:strokeWidth="1.5"/>
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/desktop_thumb_down_filled.xml
Normal file
9
app/src/main/res/drawable/desktop_thumb_down_filled.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M8.99448 14.4L4.99448 14.4C4.6753 14.3886 4.36348 14.301 4.08512 14.1444C3.80675 13.9878 3.56993 13.7669 3.39448 13.5C3.20527 13.2453 3.07938 12.9492 3.02722 12.6362C2.97506 12.3232 2.99811 12.0023 3.09448 11.7L5.49448 4.5C5.79448 3.6 5.99448 3.1 7.39448 3.1C9.39448 3.1 11.5945 3.8 13.4945 4.4L14.9945 4.8L14.9945 14.6C13.3998 16.2761 11.9915 18.1202 10.7945 20.1C10.6945 20.5 10.2945 20.8 9.89448 21L8.69448 21C8.29448 20.9 7.99448 20.6 7.69448 20.3L7.49448 19L8.99448 14.4ZM19.7945 14.1L16.9945 14.1L16.9945 6.1C16.9945 5.56957 17.2052 5.06086 17.5803 4.68579C17.9553 4.31071 18.464 4.1 18.9945 4.1C19.5249 4.1 20.0336 4.31071 20.4087 4.68579C20.7838 5.06086 20.9945 5.56957 20.9945 6.1L20.9945 12.9C20.9945 13.6 20.4945 14.1 19.7945 14.1Z" />
|
||||||
|
</vector>
|
11
app/src/main/res/drawable/desktop_thumb_up.xml
Normal file
11
app/src/main/res/drawable/desktop_thumb_up.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/transparent"
|
||||||
|
android:pathData="M15 9.69998H19C19.3192 9.71134 19.631 9.79898 19.9094 9.95556C20.1877 10.1121 20.4245 10.3331 20.6 10.6C20.7892 10.8547 20.9151 11.1508 20.9673 11.4638C21.0194 11.7768 20.9964 12.0977 20.9 12.4L18.5 19.6C18.2 20.5 18 21 16.6 21C14.6 21 12.4 20.3 10.5 19.7L9 19.3V9.49998C10.5947 7.82386 12.0029 5.97974 13.2 3.99998C13.3 3.59998 13.7 3.29998 14.1 3.09998H15.3C15.7 3.19998 16 3.49998 16.3 3.79998L16.5 5.09998L15 9.69998ZM4.2 9.99998H7V18C7 18.5304 6.78929 19.0391 6.41421 19.4142C6.03914 19.7893 5.53043 20 5 20C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V11.2C3 10.5 3.5 9.99998 4.2 9.99998Z"
|
||||||
|
android:strokeColor="@color/white"
|
||||||
|
android:strokeWidth="1.5"/>
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/desktop_thumb_up_filled.xml
Normal file
9
app/src/main/res/drawable/desktop_thumb_up_filled.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M15 9.69998H19C19.3192 9.71134 19.631 9.79898 19.9094 9.95556C20.1877 10.1121 20.4245 10.3331 20.6 10.6C20.7892 10.8547 20.9151 11.1508 20.9673 11.4638C21.0194 11.7768 20.9964 12.0977 20.9 12.4L18.5 19.6C18.2 20.5 18 21 16.6 21C14.6 21 12.4 20.3 10.5 19.7L9 19.3V9.49998C10.5947 7.82386 12.0029 5.97974 13.2 3.99998C13.3 3.59998 13.7 3.29998 14.1 3.09998H15.3C15.7 3.19998 16 3.49998 16.3 3.79998L16.5 5.09998L15 9.69998ZM4.2 9.99998H7V18C7 18.5304 6.78929 19.0391 6.41421 19.4142C6.03914 19.7893 5.53043 20 5 20C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V11.2C3 10.5 3.5 9.99998 4.2 9.99998Z" />
|
||||||
|
</vector>
|
9
app/src/main/res/drawable/ic_high_quality.xml
Normal file
9
app/src/main/res/drawable/ic_high_quality.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="48dp"
|
||||||
|
android:height="48dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M592.69,651.08L623.46,651.08L623.46,589.15L655.23,589.15Q671.76,589.15 683.57,577.41Q695.38,565.66 695.38,549.23L695.38,411Q695.38,394.47 683.57,382.66Q671.76,370.85 655.23,370.85L563.08,370.85Q546.77,370.85 533.38,382.66Q520,394.47 520,411L520,549.23Q520,565.66 533.38,577.41Q546.77,589.15 563.08,589.15L592.69,589.15L592.69,651.08ZM264.62,589.15L295.38,589.15L295.38,504.77L409.23,504.77L409.23,589.15L440,589.15L440,370.85L409.23,370.85L409.23,474L295.38,474L295.38,370.85L264.62,370.85L264.62,589.15ZM563.08,558.38Q558.46,558.38 554.62,554.54Q550.77,550.69 550.77,546.08L550.77,413.92Q550.77,409.31 554.62,405.46Q558.46,401.62 563.08,401.62L652.31,401.62Q656.92,401.62 660.77,405.46Q664.62,409.31 664.62,413.92L664.62,546.08Q664.62,550.69 660.77,554.54Q656.92,558.38 652.31,558.38L563.08,558.38ZM175.38,760Q152.33,760 136.16,743.84Q120,727.67 120,704.62L120,255.38Q120,232.33 136.16,216.16Q152.33,200 175.38,200L784.62,200Q807.67,200 823.84,216.16Q840,232.33 840,255.38L840,704.62Q840,727.67 823.84,743.84Q807.67,760 784.62,760L175.38,760ZM175.38,729.23L784.62,729.23Q793.85,729.23 801.54,721.54Q809.23,713.85 809.23,704.62L809.23,255.38Q809.23,246.15 801.54,238.46Q793.85,230.77 784.62,230.77L175.38,230.77Q166.15,230.77 158.46,238.46Q150.77,246.15 150.77,255.38L150.77,704.62Q150.77,713.85 158.46,721.54Q166.15,729.23 175.38,729.23ZM150.77,729.23Q150.77,729.23 150.77,721.54Q150.77,713.85 150.77,704.62L150.77,255.38Q150.77,246.15 150.77,238.46Q150.77,230.77 150.77,230.77L150.77,230.77Q150.77,230.77 150.77,238.46Q150.77,246.15 150.77,255.38L150.77,704.62Q150.77,713.85 150.77,721.54Q150.77,729.23 150.77,729.23Z"/>
|
||||||
|
</vector>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:state_checked="true" android:drawable="@drawable/ic_thumb_down_filled" />
|
<item android:state_checked="true" android:drawable="@drawable/desktop_thumb_down_filled" />
|
||||||
<item android:drawable="@drawable/ic_thumb_down" />
|
<item android:drawable="@drawable/desktop_thumb_down" />
|
||||||
</selector>
|
</selector>
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:state_checked="true" android:drawable="@drawable/ic_thumb_up_filled" />
|
<item android:state_checked="true" android:drawable="@drawable/desktop_thumb_up_filled" />
|
||||||
<item android:drawable="@drawable/ic_thumb_up" />
|
<item android:drawable="@drawable/desktop_thumb_up" />
|
||||||
</selector>
|
</selector>
|
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
@ -36,18 +37,40 @@
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingVertical="8dp">
|
android:paddingVertical="8dp">
|
||||||
|
|
||||||
<com.futo.platformplayer.views.others.CreatorThumbnail
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/creator_thumbnail"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="32dp"
|
android:layout_height="wrap_content">
|
||||||
android:layout_height="32dp"
|
|
||||||
android:layout_marginEnd="8dp"
|
<com.futo.platformplayer.views.others.CreatorThumbnail
|
||||||
android:contentDescription="@string/cd_creator_thumbnail" />
|
android:id="@+id/creator_thumbnail"
|
||||||
|
android:layout_width="32dp"
|
||||||
|
android:layout_height="32dp"
|
||||||
|
android:contentDescription="@string/cd_creator_thumbnail"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
<com.futo.platformplayer.views.platform.PlatformIndicator
|
||||||
|
android:id="@+id/short_platform_indicator"
|
||||||
|
android:layout_width="16dp"
|
||||||
|
android:layout_height="16dp"
|
||||||
|
android:layout_marginStart="-12dp"
|
||||||
|
android:layout_marginBottom="-12dp"
|
||||||
|
android:background="@drawable/rounded_square_outline"
|
||||||
|
android:clipToOutline="true"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/creator_thumbnail"
|
||||||
|
app:layout_constraintStart_toEndOf="@id/creator_thumbnail" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/channel_name"
|
android:id="@+id/channel_name"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text=""
|
android:text=""
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
@ -56,11 +79,14 @@
|
||||||
<!-- Video title -->
|
<!-- Video title -->
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/video_title"
|
android:id="@+id/video_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text=""
|
android:text=""
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
@ -86,27 +112,51 @@
|
||||||
android:layout_marginBottom="12dp"
|
android:layout_marginBottom="12dp"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/like_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="center_horizontal">
|
||||||
android:checkable="true"
|
|
||||||
android:contentDescription="@string/cd_image_like_icon"
|
<ImageView
|
||||||
app:backgroundTint="@color/transparent"
|
android:layout_width="0dp"
|
||||||
app:icon="@drawable/thumb_up_selector"
|
android:layout_height="0dp"
|
||||||
app:iconSize="24dp"
|
android:importantForAccessibility="no"
|
||||||
app:iconTint="@android:color/white"
|
android:src="@drawable/button_shadow"
|
||||||
app:rippleColor="@color/ripple"
|
app:layout_constraintBottom_toBottomOf="@id/like_button"
|
||||||
app:toggleCheckedStateOnClick="false" />
|
app:layout_constraintEnd_toEndOf="@id/like_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/like_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/like_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/like_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:checkable="true"
|
||||||
|
android:contentDescription="@string/cd_image_like_icon"
|
||||||
|
app:backgroundTint="@color/transparent"
|
||||||
|
app:icon="@drawable/thumb_up_selector"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple"
|
||||||
|
app:toggleCheckedStateOnClick="false" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/like_count"
|
android:id="@+id/like_count"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
@ -120,27 +170,51 @@
|
||||||
android:layout_marginBottom="12dp"
|
android:layout_marginBottom="12dp"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/dislike_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="center_horizontal">
|
||||||
android:checkable="true"
|
|
||||||
android:contentDescription="@string/cd_image_dislike_icon"
|
<ImageView
|
||||||
app:backgroundTint="@color/transparent"
|
android:layout_width="0dp"
|
||||||
app:icon="@drawable/thumb_down_selector"
|
android:layout_height="0dp"
|
||||||
app:iconSize="24dp"
|
android:importantForAccessibility="no"
|
||||||
app:iconTint="@android:color/white"
|
android:src="@drawable/button_shadow"
|
||||||
app:rippleColor="@color/ripple"
|
app:layout_constraintBottom_toBottomOf="@id/dislike_button"
|
||||||
app:toggleCheckedStateOnClick="false" />
|
app:layout_constraintEnd_toEndOf="@id/dislike_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/dislike_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/dislike_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/dislike_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:checkable="true"
|
||||||
|
android:contentDescription="@string/cd_image_dislike_icon"
|
||||||
|
app:backgroundTint="@color/transparent"
|
||||||
|
app:icon="@drawable/thumb_down_selector"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple"
|
||||||
|
app:toggleCheckedStateOnClick="false" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/dislike_count"
|
android:id="@+id/dislike_count"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
@ -152,28 +226,52 @@
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginBottom="12dp">
|
android:layout_marginBottom="12dp">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/comments_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal">
|
||||||
android:layout_marginBottom="8dp"
|
|
||||||
android:contentDescription="@string/comments"
|
<ImageView
|
||||||
app:icon="@drawable/ic_comment"
|
android:layout_width="0dp"
|
||||||
app:iconSize="24dp"
|
android:layout_height="0dp"
|
||||||
app:iconTint="@android:color/white"
|
android:importantForAccessibility="no"
|
||||||
app:rippleColor="@color/ripple" />
|
android:src="@drawable/button_shadow"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/comments_button"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/comments_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/comments_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/comments_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/comments_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:contentDescription="@string/comments"
|
||||||
|
app:icon="@drawable/desktop_comments"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text="@string/comments"
|
android:text="@string/comments"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
tools:ignore="TextContrastCheck" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<!-- Share button -->
|
<!-- Share button -->
|
||||||
|
@ -183,27 +281,52 @@
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginBottom="12dp">
|
android:layout_marginBottom="12dp">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/share_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="center_horizontal">
|
||||||
android:contentDescription="@string/share"
|
|
||||||
app:icon="@drawable/ic_share"
|
<ImageView
|
||||||
app:iconSize="24dp"
|
android:layout_width="0dp"
|
||||||
app:iconTint="@android:color/white"
|
android:layout_height="0dp"
|
||||||
app:rippleColor="@color/ripple" />
|
android:importantForAccessibility="no"
|
||||||
|
android:src="@drawable/button_shadow"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/share_button"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/share_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/share_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/share_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/share_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:contentDescription="@string/share"
|
||||||
|
app:icon="@drawable/desktop_share"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text="@string/share"
|
android:text="@string/share"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
tools:ignore="TextContrastCheck" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<!-- Refresh button -->
|
<!-- Refresh button -->
|
||||||
|
@ -213,27 +336,53 @@
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginBottom="12dp">
|
android:layout_marginBottom="12dp">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/refresh_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="center_horizontal">
|
||||||
android:contentDescription="@string/refresh"
|
|
||||||
app:icon="@drawable/ic_refresh"
|
<ImageView
|
||||||
app:iconSize="24dp"
|
android:layout_width="0dp"
|
||||||
app:iconTint="@android:color/white"
|
android:layout_height="0dp"
|
||||||
app:rippleColor="@color/ripple" />
|
android:importantForAccessibility="no"
|
||||||
|
android:src="@drawable/button_shadow"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/refresh_button"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/refresh_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/refresh_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/refresh_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/refresh_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:contentDescription="@string/refresh"
|
||||||
|
app:icon="@drawable/desktop_refresh"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text="@string/refresh"
|
android:text="@string/refresh"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
tools:ignore="TextContrastCheck" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<!-- Quality/More button -->
|
<!-- Quality/More button -->
|
||||||
|
@ -242,27 +391,52 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal">
|
android:layout_gravity="center_horizontal">
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/quality_button"
|
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_gravity="center_horizontal">
|
||||||
android:contentDescription="@string/quality"
|
|
||||||
app:icon="@drawable/ic_more"
|
<ImageView
|
||||||
app:iconSize="24dp"
|
android:layout_width="0dp"
|
||||||
app:iconTint="@android:color/white"
|
android:layout_height="0dp"
|
||||||
app:rippleColor="@color/ripple" />
|
android:importantForAccessibility="no"
|
||||||
|
android:src="@drawable/button_shadow"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@id/quality_button"
|
||||||
|
app:layout_constraintEnd_toEndOf="@id/quality_button"
|
||||||
|
app:layout_constraintStart_toStartOf="@id/quality_button"
|
||||||
|
app:layout_constraintTop_toTopOf="@id/quality_button"
|
||||||
|
app:tint="@color/black"
|
||||||
|
tools:ignore="ImageContrastCheck" />
|
||||||
|
|
||||||
|
<com.google.android.material.button.MaterialButton
|
||||||
|
android:id="@+id/quality_button"
|
||||||
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:contentDescription="@string/quality"
|
||||||
|
app:icon="@drawable/desktop_gear"
|
||||||
|
app:iconSize="24dp"
|
||||||
|
app:iconTint="@android:color/white"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:rippleColor="@color/ripple" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center_horizontal"
|
android:layout_gravity="bottom|center_horizontal"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
|
android:paddingHorizontal="4dp"
|
||||||
android:shadowColor="@android:color/black"
|
android:shadowColor="@android:color/black"
|
||||||
|
android:shadowRadius="8"
|
||||||
android:text="@string/quality"
|
android:text="@string/quality"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
tools:ignore="TextContrastCheck" />
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<string name="preferred_quality">Preferred Quality</string>
|
<string name="preferred_quality">Preferred Quality</string>
|
||||||
<string name="preferred_quality_description">Default quality for watching a video</string>
|
<string name="preferred_quality_description">Default quality for watching a video</string>
|
||||||
<string name="update">Update</string>
|
<string name="update">Update</string>
|
||||||
<string name="refresh">Refresh</string>
|
<string name="refresh">Refresh Feed</string>
|
||||||
<string name="close">Close</string>
|
<string name="close">Close</string>
|
||||||
<string name="never">Never</string>
|
<string name="never">Never</string>
|
||||||
<string name="import_options">Select any of the following available import options.</string>
|
<string name="import_options">Select any of the following available import options.</string>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue