add some Resize related assets

This commit is contained in:
tibbi 2016-12-06 19:06:54 +01:00
parent 4c0a0a43b8
commit 463992a80d
16 changed files with 79 additions and 3 deletions

View file

@ -65,10 +65,18 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
crop_image_view.rotateImage(90)
true
}
R.id.resize -> {
resizeImage()
true
}
else -> super.onOptionsItemSelected(item)
}
}
private fun resizeImage() {
}
override fun onCropImageComplete(view: CropImageView, result: CropImageView.CropResult) {
if (result.error == null) {
if (uri.scheme == "file") {

View file

@ -1,14 +1,19 @@
<?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_as"
android:icon="@mipmap/check"
android:title="@string/save_as"
app:showAsAction="always"/>
<item
android:id="@+id/rotate"
android:icon="@mipmap/rotate"
android:title="@string/rotate"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/save_as"
android:icon="@mipmap/check"
android:title="@string/save_as"
android:id="@+id/resize"
android:icon="@mipmap/resize"
android:title="@string/resize"
app:showAsAction="ifRoom"/>
</menu>

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d Dateien gelöscht</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Datei umbenennen</string>
<string name="rename_folder">Ordner umbenennen</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d archivos eliminados</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Renombrar archivo</string>
<string name="rename_folder">Renombrar carpeta</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d file eliminati</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Rinomina file</string>
<string name="rename_folder">Rinomina cartella</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d ファイルを削除しました</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">ファイルの名前を変更</string>
<string name="rename_folder">フォルダーの名前を変更</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d ficheiros apagados</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Renomear ficheiro</string>
<string name="rename_folder">Renomear pasta</string>

View file

@ -61,6 +61,13 @@
<item quantity="other">Файлов удалено: %1$d</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Изменение имени файла</string>
<string name="rename_folder">Переименовать папку</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d filer borttagna</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Döp om fil</string>
<string name="rename_folder">Döp om mapp</string>

View file

@ -61,6 +61,13 @@
<item quantity="other">%1$d files deleted</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">重命名文件</string>
<string name="rename_file_error">文件不能重命名</string>

View file

@ -60,6 +60,13 @@
<item quantity="other">%1$d files deleted</item>
</plurals>
<!-- Resizing -->
<string name="resize">Resize</string>
<string name="resize_final_image">Resize final image</string>
<string name="width">Width</string>
<string name="height">Height</string>
<string name="keep_aspect_ratio">Keep aspect ratio</string>
<!-- Renaming -->
<string name="rename_file">Rename file</string>
<string name="rename_folder">Rename folder</string>