add lots of missing newlines
This commit is contained in:
parent
ec2162b4b7
commit
67d7391c53
44 changed files with 59 additions and 41 deletions
|
|
@ -98,7 +98,7 @@ public abstract class AbsMultiSelectAdapter<VH extends RecyclerView.ViewHolder,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCabItemClicked(MenuItem menuItem) {
|
public boolean onCabItemClicked(MenuItem menuItem) {
|
||||||
if (menuItem.getItemId() == R.id.action_multi_select_adapter_check_all) {
|
if (menuItem.getItemId() == R.id.action_select_all) {
|
||||||
checkAll();
|
checkAll();
|
||||||
} else {
|
} else {
|
||||||
onMultipleItemAction(menuItem, new ArrayList<>(checked));
|
onMultipleItemAction(menuItem, new ArrayList<>(checked));
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<alpha
|
<alpha
|
||||||
android:interpolator="@android:anim/accelerate_interpolator"
|
android:interpolator="@android:anim/accelerate_interpolator"
|
||||||
android:fromAlpha="1.0" android:toAlpha="0.0"
|
android:fromAlpha="1.0"
|
||||||
|
android:toAlpha="0.0"
|
||||||
android:fillAfter="true"
|
android:fillAfter="true"
|
||||||
android:startOffset="1600"
|
android:startOffset="1600"
|
||||||
android:duration="200" />
|
android:duration="200" />
|
||||||
|
|
||||||
</set>
|
</set>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<alpha
|
<alpha
|
||||||
android:interpolator="@android:anim/accelerate_interpolator"
|
android:interpolator="@android:anim/accelerate_interpolator"
|
||||||
android:fromAlpha="1.0" android:toAlpha="0.0"
|
android:fromAlpha="1.0"
|
||||||
|
android:toAlpha="0.0"
|
||||||
android:fillAfter="true"
|
android:fillAfter="true"
|
||||||
android:duration="400" />
|
android:duration="400" />
|
||||||
|
|
||||||
</set>
|
</set>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<alpha
|
<alpha
|
||||||
android:interpolator="@android:anim/accelerate_interpolator"
|
android:interpolator="@android:anim/accelerate_interpolator"
|
||||||
android:fromAlpha="1.0" android:toAlpha="0.0"
|
android:fromAlpha="1.0"
|
||||||
|
android:toAlpha="0.0"
|
||||||
android:fillAfter="true"
|
android:fillAfter="true"
|
||||||
android:startOffset="800"
|
android:startOffset="800"
|
||||||
android:duration="200" />
|
android:duration="200" />
|
||||||
|
|
||||||
</set>
|
</set>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<item
|
<item
|
||||||
android:id="@android:id/mask"
|
android:id="@android:id/mask"
|
||||||
android:drawable="@android:color/white" />
|
android:drawable="@android:color/white" />
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<selector>
|
<selector>
|
||||||
<item
|
<item
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<item
|
<item
|
||||||
android:id="@android:id/mask"
|
android:id="@android:id/mask"
|
||||||
android:drawable="@android:color/white" />
|
android:drawable="@android:color/white" />
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<selector>
|
<selector>
|
||||||
<item
|
<item
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
<item
|
<item
|
||||||
android:id="@android:id/mask"
|
android:id="@android:id/mask"
|
||||||
android:drawable="@android:color/white" />
|
android:drawable="@android:color/white" />
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<selector>
|
<selector>
|
||||||
<item
|
<item
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M124.35,92h-16.2v16.2h-8.1V92H83.85v-8.1h16.2V67.65h8.1v16.2h16.2M128.4,55.5H79.8a8.1,8.1,0,0,0-8.1,8.1v48.6a8.1,8.1,0,0,0,8.1,8.1h48.6a8.1,8.1,0,0,0,8.1-8.1V63.6a8.1,8.1,0,0,0-8.1-8.1M63.6,71.7H55.5v56.7a8.1,8.1,0,0,0,8.1,8.1h56.7v-8.1H63.6Z" />
|
android:pathData="M124.35,92h-16.2v16.2h-8.1V92H83.85v-8.1h16.2V67.65h8.1v16.2h16.2M128.4,55.5H79.8a8.1,8.1,0,0,0-8.1,8.1v48.6a8.1,8.1,0,0,0,8.1,8.1h48.6a8.1,8.1,0,0,0,8.1-8.1V63.6a8.1,8.1,0,0,0-8.1-8.1M63.6,71.7H55.5v56.7a8.1,8.1,0,0,0,8.1,8.1h56.7v-8.1H63.6Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -15,4 +15,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M110.15,103l-7,7,15.65,15.65L108.5,136H136V108.5l-10.2,10.2L110.15,103M108.5,56l10.2,10.2L56,128.95l7,7L125.8,73.3,136,83.5V56M89,81.85,63.05,56l-7,7L81.85,88.9Z" />
|
android:pathData="M110.15,103l-7,7,15.65,15.65L108.5,136H136V108.5l-10.2,10.2L110.15,103M108.5,56l10.2,10.2L56,128.95l7,7L125.8,73.3,136,83.5V56M89,81.85,63.05,56l-7,7L81.85,88.9Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -15,4 +15,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M113.7,69.45l10.13,10.13-21.59,21.59-17.7-17.7L51.75,116.31,58,122.55,84.54,96l17.7,17.7,27.88-27.83L140.25,96V69.45Z" />
|
android:pathData="M113.7,69.45l10.13,10.13-21.59,21.59-17.7-17.7L51.75,116.31,58,122.55,84.54,96l17.7,17.7,27.88-27.83L140.25,96V69.45Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="270"
|
android:angle="270"
|
||||||
android:centerColor="#11000000"
|
android:centerY="0.4"
|
||||||
android:endColor="@color/overlay_dark"
|
android:endColor="@color/overlay_dark"
|
||||||
android:startColor="@color/overlay_light" />
|
android:startColor="@color/overlay_light" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="90"
|
android:angle="90"
|
||||||
android:centerY="0.33"
|
android:centerY="0.4"
|
||||||
android:endColor="@color/overlay_light"
|
android:endColor="@color/overlay_light"
|
||||||
android:startColor="@color/overlay_clear" />
|
android:startColor="@color/overlay_clear" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<gradient
|
<gradient
|
||||||
android:angle="90"
|
android:angle="90"
|
||||||
android:centerColor="#11000000"
|
android:centerY="0.4"
|
||||||
android:endColor="@color/overlay_dark"
|
android:endColor="@color/overlay_dark"
|
||||||
android:startColor="@color/overlay_clear" />
|
android:startColor="@color/overlay_clear" />
|
||||||
</shape>
|
</shape>
|
||||||
|
|
@ -15,4 +15,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M 88 0 C 136.601057985 0 176 39.3989420149 176 88 C 176 136.601057985 136.601057985 176 88 176 C 39.3989420149 176 0 136.601057985 0 88 C 0 39.3989420149 39.3989420149 0 88 0 Z" />
|
android:pathData="M 88 0 C 136.601057985 0 176 39.3989420149 176 88 C 176 136.601057985 136.601057985 176 88 176 C 39.3989420149 176 0 136.601057985 0 88 C 0 39.3989420149 39.3989420149 0 88 0 Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M124.35,92h-16.2v16.2h-8.1V92H83.85v-8.1h16.2V67.65h8.1v16.2h16.2M128.4,55.5H79.8a8.1,8.1,0,0,0-8.1,8.1v48.6a8.1,8.1,0,0,0,8.1,8.1h48.6a8.1,8.1,0,0,0,8.1-8.1V63.6a8.1,8.1,0,0,0-8.1-8.1M63.6,71.7H55.5v56.7a8.1,8.1,0,0,0,8.1,8.1h56.7v-8.1H63.6Z" />
|
android:pathData="M124.35,92h-16.2v16.2h-8.1V92H83.85v-8.1h16.2V67.65h8.1v16.2h16.2M128.4,55.5H79.8a8.1,8.1,0,0,0-8.1,8.1v48.6a8.1,8.1,0,0,0,8.1,8.1h48.6a8.1,8.1,0,0,0,8.1-8.1V63.6a8.1,8.1,0,0,0-8.1-8.1M63.6,71.7H55.5v56.7a8.1,8.1,0,0,0,8.1,8.1h56.7v-8.1H63.6Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -17,4 +17,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M110.15,103l-7,7,15.65,15.65L108.5,136H136V108.5l-10.2,10.2L110.15,103M108.5,56l10.2,10.2L56,128.95l7,7L125.8,73.3,136,83.5V56M89,81.85,63.05,56l-7,7L81.85,88.9Z" />
|
android:pathData="M110.15,103l-7,7,15.65,15.65L108.5,136H136V108.5l-10.2,10.2L110.15,103M108.5,56l10.2,10.2L56,128.95l7,7L125.8,73.3,136,83.5V56M89,81.85,63.05,56l-7,7L81.85,88.9Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -17,4 +17,5 @@
|
||||||
android:fillColor="#000"
|
android:fillColor="#000"
|
||||||
android:pathData="M113.7,69.45l10.13,10.13-21.59,21.59-17.7-17.7L51.75,116.31,58,122.55,84.54,96l17.7,17.7,27.88-27.83L140.25,96V69.45Z" />
|
android:pathData="M113.7,69.45l10.13,10.13-21.59,21.59-17.7-17.7L51.75,116.31,58,122.55,84.54,96l17.7,17.7,27.88-27.83L140.25,96V69.45Z" />
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
</vector>
|
</vector>
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@id/action_multi_select_adapter_check_all"
|
android:id="@id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
android:title="@string/select_all_title"
|
android:title="@string/select_all_title"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@id/action_multi_select_adapter_check_all"
|
android:id="@id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
android:title="@string/select_all_title"
|
android:title="@string/select_all_title"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@id/action_multi_select_adapter_check_all"
|
android:id="@id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
android:title="@string/select_all_title"
|
android:title="@string/select_all_title"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@id/action_multi_select_adapter_check_all"
|
android:id="@id/action_select_all"
|
||||||
android:icon="@drawable/ic_select_all_white_24dp"
|
android:icon="@drawable/ic_select_all_white_24dp"
|
||||||
android:title="@string/select_all_title"
|
android:title="@string/select_all_title"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<item name="action_new_playlist" type="id" />
|
<item name="action_new_playlist" type="id" />
|
||||||
|
<item name="action_select_all" type="id" />
|
||||||
|
|
||||||
<item name="action_sort_order_ascending" type="id" />
|
<item name="action_sort_order_ascending" type="id" />
|
||||||
<item name="action_sort_order_descending" type="id" />
|
<item name="action_sort_order_descending" type="id" />
|
||||||
|
|
@ -13,6 +14,4 @@
|
||||||
<item name="action_sort_method_added" type="id" />
|
<item name="action_sort_method_added" type="id" />
|
||||||
<item name="action_sort_method_random" type="id" />
|
<item name="action_sort_method_random" type="id" />
|
||||||
|
|
||||||
<item name="action_multi_select_adapter_check_all" type="id" />
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue