add some Resize related assets
This commit is contained in:
parent
4c0a0a43b8
commit
463992a80d
16 changed files with 79 additions and 3 deletions
|
@ -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") {
|
||||
|
|
|
@ -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>
|
||||
|
|
BIN
app/src/main/res/mipmap-hdpi/resize.png
Normal file
BIN
app/src/main/res/mipmap-hdpi/resize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 725 B |
BIN
app/src/main/res/mipmap-mdpi/resize.png
Normal file
BIN
app/src/main/res/mipmap-mdpi/resize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 481 B |
BIN
app/src/main/res/mipmap-xhdpi/resize.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/resize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 447 B |
BIN
app/src/main/res/mipmap-xxhdpi/resize.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/resize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/resize.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/resize.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue