Improved fastscroll to use Linphone colors instead of Android holo theme
This commit is contained in:
parent
c96b896f73
commit
db631fc1a7
6 changed files with 31 additions and 5 deletions
BIN
res/drawable-xhdpi/fast_scroll.png
Normal file
BIN
res/drawable-xhdpi/fast_scroll.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 326 B |
BIN
res/drawable-xhdpi/fast_scroll_over.png
Normal file
BIN
res/drawable-xhdpi/fast_scroll_over.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 605 B |
6
res/drawable/fast_scroll.xml
Normal file
6
res/drawable/fast_scroll.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:state_pressed="true" android:drawable="@drawable/fast_scroll_over" />
|
||||||
|
<item android:drawable="@drawable/fast_scroll" />
|
||||||
|
</selector>
|
||||||
|
|
9
res/drawable/fast_scroll_preview.xml
Normal file
9
res/drawable/fast_scroll_preview.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<size android:width="70dp" android:height="70dp"/>
|
||||||
|
<solid android:color="@color/colorA" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
|
@ -124,9 +124,8 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:divider="@color/colorE"
|
android:divider="@color/colorE"
|
||||||
android:fastScrollAlwaysVisible="true"
|
|
||||||
android:fastScrollEnabled="true"
|
android:fastScrollEnabled="true"
|
||||||
android:scrollbarStyle="outsideOverlay"
|
android:fastScrollAlwaysVisible="true"
|
||||||
android:dividerHeight="1dp" />
|
android:dividerHeight="1dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="Default" parent="android:Theme.Holo.Light" />
|
<style name="Default" parent="android:Theme.Holo.Light">
|
||||||
<style name="NoTitle" parent="android:Theme.Holo.Light.NoActionBar" />
|
<item name="android:fastScrollThumbDrawable">@drawable/fast_scroll</item>
|
||||||
<style name="FullScreen" parent="android:Theme.Holo.Light.NoActionBar.Fullscreen" />
|
<item name="android:fastScrollTextColor">@android:color/white</item>
|
||||||
|
<item name="android:fastScrollPreviewBackgroundRight">@drawable/fast_scroll_preview</item>
|
||||||
|
</style>
|
||||||
|
<style name="NoTitle" parent="android:Theme.Holo.Light.NoActionBar">
|
||||||
|
<item name="android:fastScrollThumbDrawable">@drawable/fast_scroll</item>
|
||||||
|
<item name="android:fastScrollTextColor">@android:color/white</item>
|
||||||
|
<item name="android:fastScrollPreviewBackgroundRight">@drawable/fast_scroll_preview</item>
|
||||||
|
</style>
|
||||||
|
<style name="FullScreen" parent="android:Theme.Holo.Light.NoActionBar.Fullscreen">
|
||||||
|
<item name="android:fastScrollThumbDrawable">@drawable/fast_scroll</item>
|
||||||
|
<item name="android:fastScrollTextColor">@android:color/white</item>
|
||||||
|
<item name="android:fastScrollPreviewBackgroundRight">@drawable/fast_scroll_preview</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="font1" parent="@android:style/TextAppearance.Medium">
|
<style name="font1" parent="@android:style/TextAppearance.Medium">
|
||||||
<item name="android:textColor">@color/colorA</item>
|
<item name="android:textColor">@color/colorA</item>
|
||||||
|
|
Loading…
Reference in a new issue