sort: refactor sorting
Refactor sorting again to support free-floating ascending/descending values on every single sort mode. This enables greater freedom in how users can sort their music and allows me to finally get rid of the old legacy sematic sorting modes that chose their ascending/decending order depending on how they wanted it.
This commit is contained in:
@@ -6,6 +6,26 @@
|
||||
<attr name="entryValues" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="SlidingUpPanelLayout">
|
||||
<attr name="umanoPanelHeight" format="dimension" />
|
||||
<attr name="umanoShadowHeight" format="dimension" />
|
||||
<attr name="umanoParallaxOffset" format="dimension" />
|
||||
<attr name="umanoFadeColor" format="color" />
|
||||
<attr name="umanoFlingVelocity" format="integer" />
|
||||
<attr name="umanoDragView" format="reference" />
|
||||
<attr name="umanoScrollableView" format="reference" />
|
||||
<attr name="umanoOverlay" format="boolean"/>
|
||||
<attr name="umanoClipPanel" format="boolean"/>
|
||||
<attr name="umanoAnchorPoint" format="float" />
|
||||
<attr name="umanoInitialState" format="enum">
|
||||
<enum name="expanded" value="0" />
|
||||
<enum name="collapsed" value="1" />
|
||||
<enum name="anchored" value="2" />
|
||||
<enum name="hidden" value="3" />
|
||||
</attr>
|
||||
<attr name="umanoScrollInterpolator" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<string-array name="entires_theme">
|
||||
<item>@string/set_theme_auto</item>
|
||||
<item>@string/set_theme_day</item>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
<string name="lbl_filter_all">All</string>
|
||||
|
||||
<string name="lbl_sort">Sort</string>
|
||||
<string name="lbl_sort_name">Name</string>
|
||||
<string name="lbl_sort_asc">Ascending</string>
|
||||
<string name="lbl_sort_dsc">Descending</string>
|
||||
<string name="lbl_sort_artist">Artist</string>
|
||||
|
||||
@@ -165,4 +165,32 @@
|
||||
<item name="maxImageSize">@dimen/size_play_fab_icon</item>
|
||||
<item name="fabCustomSize">@dimen/size_btn_large</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.MaterialComponents.Button.IconOnly">
|
||||
<item name="iconPadding">0dp</item>
|
||||
<item name="android:insetTop">0dp</item>
|
||||
<item name="android:insetBottom">0dp</item>
|
||||
<item name="android:paddingLeft">12dp</item>
|
||||
<item name="android:paddingRight">12dp</item>
|
||||
<item name="android:minWidth">@dimen/size_btn_small</item>
|
||||
<item name="android:minHeight">@dimen/size_btn_small</item>
|
||||
<item name="iconGravity">textStart</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.MaterialComponents.Button.UnelevatedButton.IconOnly" parent="Widget.MaterialComponents.Button.IconOnly">
|
||||
<item name="android:stateListAnimator">@animator/mtrl_btn_unelevated_state_list_anim</item>
|
||||
<item name="elevation">0dp</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.MaterialComponents.Button.TextButton.IconOnly" parent="Widget.MaterialComponents.Button.UnelevatedButton.IconOnly">
|
||||
<item name="android:textColor">@color/mtrl_text_btn_text_color_selector</item>
|
||||
<item name="iconTint">?attr/colorControlNormal</item>
|
||||
<item name="backgroundTint">@color/mtrl_btn_text_btn_bg_color_selector</item>
|
||||
<item name="rippleColor">?attr/colorControlHighlight</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.MaterialComponents.Button.OutlinedButton.IconOnly" parent="Widget.MaterialComponents.Button.TextButton.IconOnly">
|
||||
<item name="strokeColor">@color/mtrl_btn_stroke_color_selector</item>
|
||||
<item name="strokeWidth">@dimen/mtrl_btn_stroke_size</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user