mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-29 09:39:03 +03:00
add disgusting play button (need to change)
This commit is contained in:
parent
e5fad9756d
commit
82c9443614
4 changed files with 27 additions and 11 deletions
|
@ -523,7 +523,7 @@ class PlayerActivity :
|
|||
}
|
||||
|
||||
private fun updatePlaybackStatus(paused: Boolean) {
|
||||
val r = if (paused) R.drawable.ic_play_arrow_black_24dp else R.drawable.ic_pause_black_24dp
|
||||
val r = if (paused) R.drawable.ic_play_arrow_100dp else R.drawable.ic_pause_100dp
|
||||
binding.playBtn.setImageResource(r)
|
||||
|
||||
if (paused) {
|
||||
|
|
5
app/src/main/res/drawable/ic_pause_100dp.xml
Normal file
5
app/src/main/res/drawable/ic_pause_100dp.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<vector android:height="100dp" android:tint="?attr/colorControlNormal"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="100dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
|
||||
</vector>
|
5
app/src/main/res/drawable/ic_play_arrow_100dp.xml
Normal file
5
app/src/main/res/drawable/ic_play_arrow_100dp.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<vector android:height="100dp" android:tint="?attr/colorControlNormal"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="100dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M8,5v14l11,-7z"/>
|
||||
</vector>
|
|
@ -43,6 +43,21 @@
|
|||
app:tint="?attr/colorAccent" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/playBtn"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:maxWidth="50dp"
|
||||
android:maxHeight="50dp"
|
||||
android:onClick="playPause"
|
||||
android:textColor="@android:color/white"
|
||||
app:tint="?attr/colorOnPrimarySurface"
|
||||
tools:src="@drawable/ic_play_arrow_100dp" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/controls"
|
||||
style="?android:attr/buttonBarStyle"
|
||||
|
@ -160,16 +175,7 @@
|
|||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageButton
|
||||
android:layout_marginHorizontal="5dp"
|
||||
android:id="@+id/playBtn"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="match_parent"
|
||||
android:onClick="playPause"
|
||||
android:textColor="@android:color/white"
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
app:tint="?attr/colorOnPrimarySurface"
|
||||
tools:src="@drawable/ic_play_arrow_black_24dp"/>
|
||||
|
||||
|
||||
<ImageButton
|
||||
android:layout_marginHorizontal="5dp"
|
||||
|
|
Loading…
Reference in a new issue