Add shadow behind play icon in video detail fragment

This commit is contained in:
Stypox 2020-05-11 12:48:27 +02:00
parent 9e57195e14
commit bbd0df08d3
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
6 changed files with 29 additions and 12 deletions

View File

@ -1283,7 +1283,7 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo>
detailControlsPopup.setVisibility(View.GONE);
spinnerToolbar.setVisibility(View.GONE);
thumbnailPlayButton.setImageResource(R.drawable.ic_headset_white_24dp);
thumbnailPlayButton.setImageResource(R.drawable.ic_headset_shadow);
break;
}

View File

@ -0,0 +1,14 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:alpha="0.73333333">
<path
android:pathData="M12,1c-4.97,0 -9,4.03 -9,9v7c0,1.66 1.34,3 3,3h3v-8H5v-2c0,-3.87 3.13,-7 7,-7s7,3.13 7,7v2h-4v8h3c1.66,0 3,-1.34 3,-3v-7c0,-4.97 -4.03,-9 -9,-9z"
android:strokeAlpha="0.34090909" android:strokeColor="#000000"
android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="1"/>
<path
android:pathData="M12,1c-4.97,0 -9,4.03 -9,9v7c0,1.66 1.34,3 3,3h3v-8H5v-2c0,-3.87 3.13,-7 7,-7s7,3.13 7,7v2h-4v8h3c1.66,0 3,-1.34 3,-3v-7c0,-4.97 -4.03,-9 -9,-9z"
android:fillColor="#ffffff"/>
</vector>

View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M10,8.64L15.27,12 10,15.36V8.64M8,5v14l11,-7L8,5z"
android:fillColor="#ffffff"/>
</vector>

View File

@ -0,0 +1,12 @@
<vector android:autoMirrored="true" android:height="24dp"
android:viewportHeight="80" android:viewportWidth="80"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#00000000" android:fillType="evenOdd"
android:pathData="M12.0447,6.5087 L12.0447,72.7367 69.3276,38.8486Z"
android:strokeAlpha="0.25" android:strokeColor="#000000"
android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="7"/>
<path android:fillColor="#00000000" android:fillType="evenOdd"
android:pathData="M12.0447,6.5087 L12.0447,72.7367 69.3276,38.8486Z"
android:strokeAlpha="0.73333333" android:strokeColor="#ffffff"
android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="5"/>
</vector>

View File

@ -61,7 +61,7 @@
android:layout_height="64dp"
android:layout_gravity="center"
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_play_arrow_shadow_white_24dp"
app:srcCompat="@drawable/ic_play_arrow_shadow"
android:visibility="invisible"
tools:ignore="ContentDescription"
tools:visibility="visible" />

View File

@ -55,7 +55,7 @@
android:layout_height="64dp"
android:layout_gravity="center"
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_play_arrow_shadow_white_24dp"
app:srcCompat="@drawable/ic_play_arrow_shadow"
android:visibility="invisible"
tools:ignore="ContentDescription"
tools:visibility="visible" />