add some icons and colors
|
@ -332,7 +332,7 @@ public class MainActivity extends AppCompatActivity
|
||||||
case R.id.cab_edit:
|
case R.id.cab_edit:
|
||||||
editDirectory();
|
editDirectory();
|
||||||
return true;
|
return true;
|
||||||
case R.id.cab_remove:
|
case R.id.cab_delete:
|
||||||
prepareForDeleting();
|
prepareForDeleting();
|
||||||
mode.finish();
|
mode.finish();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -264,7 +264,7 @@ public class PhotosActivity extends AppCompatActivity
|
||||||
@Override
|
@Override
|
||||||
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.cab_remove:
|
case R.id.cab_delete:
|
||||||
prepareForDeleting();
|
prepareForDeleting();
|
||||||
mode.finish();
|
mode.finish();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -102,7 +102,7 @@ public class ViewPagerActivity extends AppCompatActivity
|
||||||
case R.id.menu_share:
|
case R.id.menu_share:
|
||||||
shareImage();
|
shareImage();
|
||||||
return true;
|
return true;
|
||||||
case R.id.menu_remove:
|
case R.id.menu_delete:
|
||||||
notifyDeletion();
|
notifyDeletion();
|
||||||
return true;
|
return true;
|
||||||
case R.id.menu_edit:
|
case R.id.menu_edit:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:padding="@dimen/undo_padding"
|
android:padding="@dimen/undo_padding"
|
||||||
android:src="@mipmap/ic_launcher"
|
android:src="@mipmap/undo"
|
||||||
android:visibility="gone"/>
|
android:visibility="gone"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_edit"
|
android:id="@+id/cab_edit"
|
||||||
android:icon="@android:drawable/ic_menu_edit"
|
android:icon="@mipmap/edit"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_remove"
|
android:id="@+id/cab_delete"
|
||||||
android:icon="@android:drawable/ic_menu_delete"
|
android:icon="@mipmap/delete"
|
||||||
android:title="@string/remove"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cab_remove"
|
android:id="@+id/cab_delete"
|
||||||
android:icon="@android:drawable/ic_menu_delete"
|
android:icon="@mipmap/delete"
|
||||||
android:title="@string/remove"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -3,17 +3,17 @@
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_edit"
|
android:id="@+id/menu_edit"
|
||||||
android:icon="@android:drawable/ic_menu_edit"
|
android:icon="@mipmap/edit"
|
||||||
android:title="@string/edit"
|
android:title="@string/edit"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_remove"
|
android:id="@+id/menu_delete"
|
||||||
android:icon="@android:drawable/ic_menu_delete"
|
android:icon="@mipmap/delete"
|
||||||
android:title="@string/remove"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/menu_share"
|
android:id="@+id/menu_share"
|
||||||
android:icon="@android:drawable/ic_menu_share"
|
android:icon="@mipmap/share"
|
||||||
android:title="Share"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
BIN
app/src/main/res/mipmap-hdpi/delete.png
Normal file
After Width: | Height: | Size: 161 B |
BIN
app/src/main/res/mipmap-hdpi/edit.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
app/src/main/res/mipmap-hdpi/share.png
Normal file
After Width: | Height: | Size: 397 B |
BIN
app/src/main/res/mipmap-hdpi/undo.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
app/src/main/res/mipmap-mdpi/delete.png
Normal file
After Width: | Height: | Size: 115 B |
BIN
app/src/main/res/mipmap-mdpi/edit.png
Normal file
After Width: | Height: | Size: 165 B |
BIN
app/src/main/res/mipmap-mdpi/share.png
Normal file
After Width: | Height: | Size: 268 B |
BIN
app/src/main/res/mipmap-mdpi/undo.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
app/src/main/res/mipmap-xhdpi/delete.png
Normal file
After Width: | Height: | Size: 151 B |
BIN
app/src/main/res/mipmap-xhdpi/edit.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
app/src/main/res/mipmap-xhdpi/share.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
app/src/main/res/mipmap-xhdpi/undo.png
Normal file
After Width: | Height: | Size: 339 B |
BIN
app/src/main/res/mipmap-xxhdpi/delete.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
app/src/main/res/mipmap-xxhdpi/edit.png
Normal file
After Width: | Height: | Size: 302 B |
BIN
app/src/main/res/mipmap-xxhdpi/share.png
Normal file
After Width: | Height: | Size: 698 B |
BIN
app/src/main/res/mipmap-xxhdpi/undo.png
Normal file
After Width: | Height: | Size: 477 B |
BIN
app/src/main/res/mipmap-xxxhdpi/delete.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
app/src/main/res/mipmap-xxxhdpi/edit.png
Normal file
After Width: | Height: | Size: 355 B |
BIN
app/src/main/res/mipmap-xxxhdpi/share.png
Normal file
After Width: | Height: | Size: 938 B |
BIN
app/src/main/res/mipmap-xxxhdpi/undo.png
Normal file
After Width: | Height: | Size: 606 B |
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorPrimary">#3F51B5</color>
|
<color name="colorPrimary">#ffff6f00</color>
|
||||||
<color name="colorPrimaryDark">#303F9F</color>
|
<color name="colorPrimaryDark">#ffe46300</color>
|
||||||
<color name="colorAccent">#FF4081</color>
|
<color name="colorAccent">@color/colorPrimary</color>
|
||||||
<color name="tmb_background">#ff222222</color>
|
<color name="tmb_background">#ff222222</color>
|
||||||
<color name="actionbar_grey">#66000000</color>
|
<color name="actionbar_grey">#66000000</color>
|
||||||
<color name="pressed_item_foreground">#33000000</color>
|
<color name="pressed_item_foreground">#33000000</color>
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
<string name="app_name">Simple Gallery</string>
|
<string name="app_name">Simple Gallery</string>
|
||||||
<string name="share_via">Share via</string>
|
<string name="share_via">Share via</string>
|
||||||
<string name="no_permissions">Not much to do in a gallery without accessing your photos</string>
|
<string name="no_permissions">Not much to do in a gallery without accessing your photos</string>
|
||||||
<string name="remove">Remove</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="deleting">Deleting</string>
|
<string name="deleting">Deleting</string>
|
||||||
<string name="edit">Edit</string>
|
<string name="edit">Edit</string>
|
||||||
<string name="undo">Undo</string>
|
<string name="undo">Undo</string>
|
||||||
|
<string name="share">Share</string>
|
||||||
<string name="rename_file">Rename file</string>
|
<string name="rename_file">Rename file</string>
|
||||||
<string name="rename_folder">Rename folder</string>
|
<string name="rename_folder">Rename folder</string>
|
||||||
<string name="rename_file_error">Could not rename the file</string>
|
<string name="rename_file_error">Could not rename the file</string>
|
||||||
|
|