Skip to content

Commit

Permalink
fast scroll thumb and context menu above toolbar on >11api
Browse files Browse the repository at this point in the history
  • Loading branch information
alashow committed May 23, 2015
1 parent 8376273 commit c633705
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 44 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions app/src/main/res/drawable/music_fastscroll_thumb_holo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/music_fastscroll_thumb_pressed_holo" />
<item android:drawable="@drawable/music_fastscroll_thumb_default_holo" />
</selector>
22 changes: 2 additions & 20 deletions app/src/main/res/values-v11/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,12 @@
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorControlActivated">@color/primary</item>
<item name="windowActionModeOverlay">true</item>
<item name="windowActionModeOverlay">false</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:editTextStyle">@style/EditText</item>
<item name="android:textColorHighlight">@color/transparent_primary_30</item>
<item name="searchViewStyle">@style/WhiteSearchViewStyle</item>
</style>

<style name="Theme.Music.ActionBar" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorControlActivated">@color/primary</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:editTextStyle">@style/EditText</item>
<item name="searchViewStyle">@style/WhiteSearchViewStyle</item>
</style>

<style name="Theme.Music.Search" parent="Theme.Music">
<item name="windowActionModeOverlay">false</item>
</style>

<style name="Transparent">
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:fastScrollThumbDrawable">@drawable/music_fastscroll_thumb_holo</item>
</style>

</resources>
24 changes: 0 additions & 24 deletions app/src/main/res/values-v12/themes.xml

This file was deleted.

0 comments on commit c633705

Please sign in to comment.