add a menu item for Crop / rotate

This commit is contained in:
tibbi 2016-10-05 23:12:09 +02:00
parent 6dafca7732
commit 12800ec7c1
14 changed files with 20 additions and 5 deletions

View file

@ -140,6 +140,7 @@ public class ViewPagerActivity extends SimpleActivity
getMenuInflater().inflate(R.menu.viewpager_menu, menu); getMenuInflater().inflate(R.menu.viewpager_menu, menu);
//menu.findItem(R.id.menu_set_as_wallpaper).setVisible(getCurrentMedium().isImage()); //menu.findItem(R.id.menu_set_as_wallpaper).setVisible(getCurrentMedium().isImage());
menu.findItem(R.id.menu_set_as_wallpaper).setVisible(false); menu.findItem(R.id.menu_set_as_wallpaper).setVisible(false);
menu.findItem(R.id.menu_crop_rotate).setVisible(getCurrentMedium().isImage());
return true; return true;
} }
@ -159,6 +160,8 @@ public class ViewPagerActivity extends SimpleActivity
case R.id.menu_rename: case R.id.menu_rename:
editMedium(); editMedium();
return true; return true;
case R.id.menu_crop_rotate:
return true;
default: default:
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }

View file

@ -5,6 +5,16 @@
android:id="@+id/menu_set_as_wallpaper" android:id="@+id/menu_set_as_wallpaper"
android:title="@string/set_as_wallpaper" android:title="@string/set_as_wallpaper"
app:showAsAction="never"/> app:showAsAction="never"/>
<item
android:id="@+id/menu_crop_rotate"
android:icon="@mipmap/crop_rotate"
android:title="@string/crop_rotate"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/menu_share"
android:icon="@mipmap/share"
android:title="@string/share"
app:showAsAction="ifRoom"/>
<item <item
android:id="@+id/menu_rename" android:id="@+id/menu_rename"
android:icon="@mipmap/rename" android:icon="@mipmap/rename"
@ -15,9 +25,4 @@
android:icon="@mipmap/delete" android:icon="@mipmap/delete"
android:title="@string/delete" android:title="@string/delete"
app:showAsAction="ifRoom"/> app:showAsAction="ifRoom"/>
<item
android:id="@+id/menu_share"
android:icon="@mipmap/share"
android:title="@string/share"
app:showAsAction="ifRoom"/>
</menu> </menu>

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

View file

@ -6,6 +6,7 @@
<string name="delete">Löschen</string> <string name="delete">Löschen</string>
<string name="deleting">Lösche</string> <string name="deleting">Lösche</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Rückgängig</string> <string name="undo">Rückgängig</string>
<string name="share">Teilen</string> <string name="share">Teilen</string>
<string name="rename_file">Datei umbenennen</string> <string name="rename_file">Datei umbenennen</string>

View file

@ -6,6 +6,7 @@
<string name="delete">Eliminar</string> <string name="delete">Eliminar</string>
<string name="deleting">Eliminando</string> <string name="deleting">Eliminando</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Deshacer</string> <string name="undo">Deshacer</string>
<string name="share">Compartir</string> <string name="share">Compartir</string>
<string name="rename_file">Renombrar archivo</string> <string name="rename_file">Renombrar archivo</string>

View file

@ -6,6 +6,7 @@
<string name="delete">Elimina</string> <string name="delete">Elimina</string>
<string name="deleting">Eliminazione</string> <string name="deleting">Eliminazione</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Annulla</string> <string name="undo">Annulla</string>
<string name="share">Condividi</string> <string name="share">Condividi</string>
<string name="rename_file">Rinomina file</string> <string name="rename_file">Rinomina file</string>

View file

@ -6,6 +6,7 @@
<string name="delete">削除</string> <string name="delete">削除</string>
<string name="deleting">削除中</string> <string name="deleting">削除中</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">元に戻す</string> <string name="undo">元に戻す</string>
<string name="share">共有</string> <string name="share">共有</string>
<string name="rename_file">ファイルの名前を変更</string> <string name="rename_file">ファイルの名前を変更</string>

View file

@ -6,6 +6,7 @@
<string name="delete">Eliminar</string> <string name="delete">Eliminar</string>
<string name="deleting">A eliminar</string> <string name="deleting">A eliminar</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Desfazer</string> <string name="undo">Desfazer</string>
<string name="share">Partilhar</string> <string name="share">Partilhar</string>
<string name="rename_file">Renomear ficheiro</string> <string name="rename_file">Renomear ficheiro</string>

View file

@ -6,6 +6,7 @@
<string name="delete">Ta bort</string> <string name="delete">Ta bort</string>
<string name="deleting">Tar bort</string> <string name="deleting">Tar bort</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Ångra</string> <string name="undo">Ångra</string>
<string name="share">Dela</string> <string name="share">Dela</string>
<string name="rename_file">Döp om fil</string> <string name="rename_file">Döp om fil</string>

View file

@ -6,6 +6,7 @@
<string name="delete">Delete</string> <string name="delete">Delete</string>
<string name="deleting">Deleting</string> <string name="deleting">Deleting</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="crop_rotate">Crop / rotate</string>
<string name="undo">Undo</string> <string name="undo">Undo</string>
<string name="share">Share</string> <string name="share">Share</string>
<string name="rename_file">Rename file</string> <string name="rename_file">Rename file</string>