Преглед на файлове

Set annotation attribute window seek bar background color

Wayne преди 5 години
родител
ревизия
a705221090

+ 5 - 0
reader/src/main/res/color/selector_annotation_attribute_seek_bar_background.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:state_enabled="false" android:color="@color/reader_annotation_attribute_seek_bar_tint_background_disable"/>
+    <item android:state_enabled="true" android:color="@color/reader_annotation_attribute_seek_bar_tint_background_enable"/>
+</selector>

+ 2 - 0
reader/src/main/res/layout/view_reader_annotation_property.xml

@@ -70,6 +70,7 @@
         android:paddingRight="10dp"
         android:progress="3"
         android:progressTint="@color/selector_annotation_attribute_seek_bar"
+        android:progressBackgroundTint="@color/selector_annotation_attribute_seek_bar_background"
         android:thumbTint="@color/selector_annotation_attribute_seek_bar"
         android:scrollbarStyle="insideOverlay"
         android:thumbOffset="7dp" />
@@ -90,6 +91,7 @@
         android:paddingLeft="10dp"
         android:paddingRight="10dp"
         android:progressTint="@color/selector_annotation_attribute_seek_bar"
+        android:progressBackgroundTint="@color/selector_annotation_attribute_seek_bar_background"
         android:thumbTint="@color/selector_annotation_attribute_seek_bar"
         android:scrollbarStyle="insideOverlay"
         />

+ 3 - 0
reader/src/main/res/values/colors.xml

@@ -5,6 +5,7 @@
     <color name="black_38">#61000000</color>
     <color name="picton_blue">#30AFFD</color>
     <color name="bright_blue">#0077fd</color>
+    <color name="bright_blue_38">#610077fd</color>
 
     <color name="reader_top_toolbar_bg">#FFFFFF</color>
     <color name="reader_bottom_toolbar_bg">#FFFFFF</color>
@@ -18,6 +19,8 @@
 
     <color name="reader_annotation_attribute_seek_bar_tint_enable">@color/bright_blue</color>
     <color name="reader_annotation_attribute_seek_bar_tint_disable">@color/black_38</color>
+    <color name="reader_annotation_attribute_seek_bar_tint_background_enable">@color/bright_blue_38</color>
+    <color name="reader_annotation_attribute_seek_bar_tint_background_disable">@color/black_38</color>
     <color name="reader_annotation_color_1">#000000</color>
     <color name="reader_annotation_color_2">#296dd2</color>
     <color name="reader_annotation_color_3">#57d214</color>