mute-buton in queue layout and logic, but no icon change

This commit is contained in:
karol 2020-02-23 23:31:30 +01:00
parent cc559dc9ce
commit 2a63f2a3a6
3 changed files with 44 additions and 9 deletions

View file

@ -192,7 +192,7 @@
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/control_repeat"
android:layout_toLeftOf="@+id/control_mute"
android:gravity="center"
android:minWidth="50dp"
android:text="1x"
@ -201,13 +201,30 @@
android:background="?attr/selectableItemBackground"
tools:ignore="HardcodedText,RtlHardcoded"/>
<ImageButton
android:id="@+id/control_mute"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_toLeftOf="@+id/control_repeat"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_volume_off_white_72dp"
android:tint="@color/gray"
tools:ignore="ContentDescription"/>
<ImageButton
android:id="@+id/control_repeat"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_toLeftOf="@+id/anchor"
android:layout_centerVertical="true"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@ -216,16 +233,12 @@
android:src="@drawable/ic_repeat_white"
tools:ignore="ContentDescription"/>
<View android:layout_width="10dp"
android:layout_height="1dp"
android:layout_centerInParent="true"
android:id="@+id/anchor"/>
<ImageButton
android:id="@+id/control_shuffle"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_toRightOf="@+id/anchor"
android:layout_toRightOf="@+id/control_repeat"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:background="?attr/selectableItemBackgroundBorderless"

View file

@ -176,7 +176,7 @@
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/control_repeat"
android:layout_toLeftOf="@+id/control_mute"
android:gravity="center"
android:minWidth="50dp"
android:text="1x"
@ -185,6 +185,22 @@
android:background="?attr/selectableItemBackground"
tools:ignore="HardcodedText,RtlHardcoded"/>
<ImageButton
android:id="@+id/control_mute"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_toLeftOf="@+id/control_repeat"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_volume_off_white_72dp"
android:tint="@color/gray"
tools:ignore="ContentDescription"/>
<ImageButton
android:id="@+id/control_repeat"
android:layout_width="30dp"