Replaced Ion with Glide. Big performance boost, and should also fix the FCs many people get because of recycled bitmaps. Fixed the ripple flickering by using ?selectableItemBackground on Lollipop again instead of custom ripple. Search is broken for now, remake in progress.
This commit is contained in:
parent
c75ab6bf15
commit
ee2b661eb4
34 changed files with 448 additions and 667 deletions
|
|
@ -1,6 +0,0 @@
|
|||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?android:colorControlHighlight">
|
||||
|
||||
<item android:drawable="@drawable/rect_selector" />
|
||||
|
||||
</ripple>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="#333333">
|
||||
|
||||
<item android:drawable="@drawable/rect_selector_dark" />
|
||||
|
||||
</ripple>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<ripple
|
||||
android:color="?android:colorControlHighlight"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?android:colorControlHighlight">
|
||||
<item
|
||||
android:id="@android:id/mask"
|
||||
android:drawable="@drawable/round_ripple_selector_mask" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?android:colorControlHighlight">
|
||||
android:color="?android:colorControlHighlight">
|
||||
|
||||
<item android:drawable="@drawable/round_selector_dark" />
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
|
|
@ -19,12 +19,11 @@
|
|||
android:layout_height="5dp"
|
||||
android:background="@drawable/shadow_down" />
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list"
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:divider="@null"
|
||||
android:dividerHeight="0px" />
|
||||
android:scrollbars="vertical" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
<ImageView
|
||||
android:id="@+id/album_art"
|
||||
android:layout_width="128dp"
|
||||
android:layout_height="128dp"
|
||||
android:layout_width="@dimen/notification_albumart_size"
|
||||
android:layout_height="@dimen/notification_albumart_size"
|
||||
android:scaleType="centerCrop" />
|
||||
|
||||
<ImageButton
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<style name="Theme.MaterialMusic" parent="Theme.MaterialMusic.Base">
|
||||
<item name="round_selector">@drawable/round_ripple_selector_dark</item>
|
||||
<item name="rect_selector">@drawable/rect_ripple_selector_dark</item>
|
||||
<item name="rect_selector">?selectableItemBackground</item>
|
||||
<item name="list_selector">@drawable/list_ripple_selector_dark</item>
|
||||
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<style name="Theme.MaterialMusic.Light" parent="Theme.MaterialMusic.Base.Light">
|
||||
<item name="round_selector">@drawable/round_ripple_selector</item>
|
||||
<item name="rect_selector">@drawable/rect_ripple_selector</item>
|
||||
<item name="rect_selector">?selectableItemBackground</item>
|
||||
<item name="list_selector">@drawable/list_ripple_selector</item>
|
||||
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
<color name="materialmusic_accent_color">@color/pink_500</color>
|
||||
<color name="materialmusic_accent_color_darker">@color/pink_600</color>
|
||||
<color name="materialmusic_music_controller_container_color">@color/grey_300</color>
|
||||
<!--<color name="materialmusic_navigation_drawer_background_color">@color/grey_300</color>-->
|
||||
<color name="materialmusic_navigation_drawer_background_color">#fff</color>
|
||||
<color name="materialmusic_separator_color">#0C000000</color>
|
||||
<color name="materialmusic_default_bar_color">@color/grey_300</color>
|
||||
|
|
|
|||
|
|
@ -47,4 +47,5 @@ http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
|
|||
<dimen name="seek_bar_margin_left_right">-17dp</dimen>
|
||||
<dimen name="list_padding_vertical">2dp</dimen>
|
||||
|
||||
<dimen name="notification_albumart_size">128dp</dimen>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue