Change mute button color for more visibility
This commit is contained in:
parent
fb3290e870
commit
47c5008871
|
@ -403,7 +403,7 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setMuteButton(final ImageButton muteButton, final boolean isMuted) {
|
protected void setMuteButton(final ImageButton muteButton, final boolean isMuted) {
|
||||||
muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), isMuted ? R.color.white : R.color.gray));
|
muteButton.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), isMuted ? R.drawable.ic_volume_off_white_72dp : R.drawable.ic_volume_up_white_72dp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -405,8 +405,7 @@
|
||||||
android:src="@drawable/ic_volume_off_white_24dp"
|
android:src="@drawable/ic_volume_off_white_24dp"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:contentDescription="@string/switch_to_background"
|
android:contentDescription="@string/switch_to_background"
|
||||||
tools:ignore="RtlHardcoded"
|
tools:ignore="RtlHardcoded" />
|
||||||
android:tint="@color/gray"/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
|
@ -403,8 +403,7 @@
|
||||||
app:srcCompat="@drawable/ic_volume_off_white_72dp"
|
app:srcCompat="@drawable/ic_volume_off_white_72dp"
|
||||||
android:background="?attr/selectableItemBackground"
|
android:background="?attr/selectableItemBackground"
|
||||||
android:contentDescription="@string/switch_to_background"
|
android:contentDescription="@string/switch_to_background"
|
||||||
tools:ignore="RtlHardcoded"
|
tools:ignore="RtlHardcoded" />
|
||||||
android:tint="@color/gray"/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue