Skip to content

Commit

Permalink
Use drawable instead of color
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensousa committed Dec 22, 2023
1 parent e2f9969 commit a5e14e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/focused_text" android:state_focused="true" />
<item android:drawable="@color/transparent" />
</selector>
4 changes: 2 additions & 2 deletions sample/src/main/res/layout/screen_text_scrolling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
android:layout_height="48dp"
android:layout_marginStart="40dp"
android:layout_marginTop="40dp"
android:background="@color/list_item_background"
android:background="@drawable/list_item_background"
android:focusable="true"
android:focusableInTouchMode="true"
android:src="@drawable/ic_back"
Expand All @@ -47,7 +47,7 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="24dp"
android:background="@color/list_text_background"
android:background="@drawable/list_text_container_background"
android:fadeScrollbars="false"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarSize="6dp"
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<color name="placeholder">#4B4B4B</color>
<color name="white">#FFFFFFFF</color>
<color name="transparent">#00000000</color>
<color name="focused_text">#2B2B2B</color>
</resources>

0 comments on commit a5e14e5

Please sign in to comment.