add a Save menu item

This commit is contained in:
tibbi 2016-10-05 20:55:01 +02:00
parent 734557d7cd
commit ed1a971564
14 changed files with 32 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package com.simplemobiletools.gallery.activities
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import com.simplemobiletools.gallery.R
import com.theartofdev.edmodo.cropper.CropImageView
import kotlinx.android.synthetic.main.activity_edit.*
@ -14,4 +16,18 @@ class EditActivity : SimpleActivity() {
guidelines = CropImageView.Guidelines.OFF
}
}
override fun onCreateOptionsMenu(menu: Menu?): Boolean {
menuInflater.inflate(R.menu.menu_editor, menu)
return true
}
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.save -> {
return true
}
}
return super.onOptionsItemSelected(item)
}
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/save"
android:icon="@mipmap/check"
android:title="@string/save"
app:showAsAction="ifRoom"/>
</menu>

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Als Hintergrundbild setzen</string>
<string name="set_as_wallpaper_failed">Setzen des Hintergrundbildes fehlgeschlagen</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 Ordner gelöscht</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Establecer como fondo de pantalla</string>
<string name="set_as_wallpaper_failed">Error al establecer fondo de pantalla</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 carpeta eliminada</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Set as Wallpaper</string>
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 cartella eliminata</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Set as Wallpaper</string>
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 フォルダーを削除しました</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Definir como fundo de ecrã</string>
<string name="set_as_wallpaper_failed">Falha ao definir como fundo de ecrã</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 pasta eliminada</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Set as Wallpaper</string>
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 mapp borttagen</item>

View File

@ -32,6 +32,7 @@
<string name="set_as_wallpaper">Set as Wallpaper</string>
<string name="set_as_wallpaper_failed">Setting as Wallpaper failed</string>
<string name="editor">Editor</string>
<string name="save">Save</string>
<plurals name="folders_deleted">
<item quantity="one">1 folder deleted</item>