mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
add a Save menu item
This commit is contained in:
parent
734557d7cd
commit
ed1a971564
14 changed files with 32 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
9
app/src/main/res/menu/menu_editor.xml
Normal file
9
app/src/main/res/menu/menu_editor.xml
Normal 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>
|
BIN
app/src/main/res/mipmap-hdpi/check.png
Normal file
BIN
app/src/main/res/mipmap-hdpi/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 181 B |
BIN
app/src/main/res/mipmap-mdpi/check.png
Normal file
BIN
app/src/main/res/mipmap-mdpi/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 137 B |
BIN
app/src/main/res/mipmap-xhdpi/check.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 B |
BIN
app/src/main/res/mipmap-xxhdpi/check.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 276 B |
BIN
app/src/main/res/mipmap-xxxhdpi/check.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 308 B |
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue