Replaced custom background with selectableItemBackground

This commit is contained in:
ByteHamster 2020-01-02 18:21:01 +01:00
parent 417dcdacf0
commit 8119b4a8e1
5 changed files with 3 additions and 26 deletions

View File

@ -43,7 +43,7 @@
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/status_progress" android:textColor="@color/status_progress"
android:textSize="24sp" android:textSize="24sp"
android:background="@drawable/borderless_button_dark"/> android:background="?android:attr/selectableItemBackground"/>
<Button <Button
android:id="@+id/butIncSpeed" android:id="@+id/butIncSpeed"
@ -57,7 +57,7 @@
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/status_progress" android:textColor="@color/status_progress"
android:textSize="24sp" android:textSize="24sp"
android:background="@drawable/borderless_button_dark"/> android:background="?android:attr/selectableItemBackground"/>
<SeekBar <SeekBar
android:id="@+id/playback_speed" android:id="@+id/playback_speed"

View File

@ -17,7 +17,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:layout_alignParentEnd="true"
android:contentDescription="@string/mr_controller_play" android:contentDescription="@string/mr_controller_play"
android:background="?attr/selectableItemBackgroundBorderless"/> android:background="?android:attr/selectableItemBackground"/>
<LinearLayout android:id="@+id/mrc_control_title_container" <LinearLayout android:id="@+id/mrc_control_title_container"
android:orientation="vertical" android:orientation="vertical"

View File

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="@color/selection_background_color_dark" />
</shape>
</item>
<item android:state_focused="true">
<shape android:shape="rectangle">
<solid android:color="@color/selection_background_color_dark" />
</shape>
</item>
<item>
<shape android:shape="rectangle">
<solid android:color="@android:color/transparent" />
</shape>
</item>
</selector>

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="selection_background_color_dark">#484B4D</color>
</resources>

View File

@ -28,7 +28,6 @@
<attr name="ic_folder" format="reference"/> <attr name="ic_folder" format="reference"/>
<attr name="type_audio" format="reference"/> <attr name="type_audio" format="reference"/>
<attr name="type_video" format="reference"/> <attr name="type_video" format="reference"/>
<attr name="borderless_button" format="reference"/>
<attr name="overlay_drawable" format="reference"/> <attr name="overlay_drawable" format="reference"/>
<attr name="dragview_background" format="reference"/> <attr name="dragview_background" format="reference"/>
<attr name="dragview_float_background" format="reference"/> <attr name="dragview_float_background" format="reference"/>