Improved fastscroll to use Linphone colors instead of Android holo theme

This commit is contained in:
Sylvain Berfini 2016-03-22 15:35:15 +01:00 committed by Jehan Monnier
parent c96b896f73
commit db631fc1a7
6 changed files with 31 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

View 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>

View 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>

View file

@ -124,9 +124,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:divider="@color/colorE"
android:fastScrollAlwaysVisible="true"
android:fastScrollEnabled="true"
android:scrollbarStyle="outsideOverlay"
android:fastScrollAlwaysVisible="true"
android:dividerHeight="1dp" />
<TextView

View file

@ -1,9 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Default" parent="android:Theme.Holo.Light" />
<style name="NoTitle" parent="android:Theme.Holo.Light.NoActionBar" />
<style name="FullScreen" parent="android:Theme.Holo.Light.NoActionBar.Fullscreen" />
<style name="Default" parent="android:Theme.Holo.Light">
<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="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">
<item name="android:textColor">@color/colorA</item>