From 463992a80d4693f81282db6415dbf320639933f6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 6 Dec 2016 19:06:54 +0100 Subject: [PATCH] add some Resize related assets --- .../gallery/activities/EditActivity.kt | 8 ++++++++ app/src/main/res/menu/menu_editor.xml | 11 ++++++++--- app/src/main/res/mipmap-hdpi/resize.png | Bin 0 -> 725 bytes app/src/main/res/mipmap-mdpi/resize.png | Bin 0 -> 481 bytes app/src/main/res/mipmap-xhdpi/resize.png | Bin 0 -> 447 bytes app/src/main/res/mipmap-xxhdpi/resize.png | Bin 0 -> 1921 bytes app/src/main/res/mipmap-xxxhdpi/resize.png | Bin 0 -> 2308 bytes app/src/main/res/values-de/strings.xml | 7 +++++++ app/src/main/res/values-es/strings.xml | 7 +++++++ app/src/main/res/values-it/strings.xml | 7 +++++++ app/src/main/res/values-ja/strings.xml | 7 +++++++ app/src/main/res/values-pt-rPT/strings.xml | 7 +++++++ app/src/main/res/values-ru/strings.xml | 7 +++++++ app/src/main/res/values-sv/strings.xml | 7 +++++++ app/src/main/res/values-zh/strings.xml | 7 +++++++ app/src/main/res/values/strings.xml | 7 +++++++ 16 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/mipmap-hdpi/resize.png create mode 100644 app/src/main/res/mipmap-mdpi/resize.png create mode 100644 app/src/main/res/mipmap-xhdpi/resize.png create mode 100644 app/src/main/res/mipmap-xxhdpi/resize.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/resize.png diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt index 4a297ae97..578b337f2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/EditActivity.kt @@ -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") { diff --git a/app/src/main/res/menu/menu_editor.xml b/app/src/main/res/menu/menu_editor.xml index 6fc1f6f37..d50dbdb0e 100644 --- a/app/src/main/res/menu/menu_editor.xml +++ b/app/src/main/res/menu/menu_editor.xml @@ -1,14 +1,19 @@ + diff --git a/app/src/main/res/mipmap-hdpi/resize.png b/app/src/main/res/mipmap-hdpi/resize.png new file mode 100644 index 0000000000000000000000000000000000000000..fe86cd0d4bf790b75448f9e4d606b06a1bf4e886 GIT binary patch literal 725 zcmV;`0xJE9P)B+WvC~MUu>>0LW3lIkb-nv_1B4jf6uh zIvY+K4#ZtFQ=}GKuTLFSSE4+RP*Z)Yo{qBq7(DHBK|N7OCX=b9jDvagqPm)r7ZGZz zYtiOuo2=LSXkv=zGmf_W8%2a#*vh=7g(5Otc@IJezkq3A0T2j4Ppw@g=!v!hi@~ugRiyh!m2;oPOQXwIA6qu#6%w*96%(f1CZ9?iWFbAC512Qd)19RCc zp_Gt11T=sPB=3K(5P!1f-H*(Ryqifcb` zAL!l#LfyavO9qFc;@U@2>2I>z&vcThZFc*q>m(JwUV~;b1w00BM4cu{qjrhpP*$lw zlAON@U_Scjilm-YZecBN@<-G+6+Ziw*iUudUT`9I=0_&{y+Qy%OtsrLhFtI00000NkvXX Hu0mjfn6^o$ literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-mdpi/resize.png b/app/src/main/res/mipmap-mdpi/resize.png new file mode 100644 index 0000000000000000000000000000000000000000..f378b54529fb98dc25ecb6b4d07b91112c236a06 GIT binary patch literal 481 zcmV<70UrK|P)E!Dd=2QSGvR> zt7CQe7vkIMk@{rLL>=UW`5jgZ*VWBpys54?#LYnGPa_E*lW?qFFT@Ykor1fgzE&^f zc$lJ{0oEon;#j?{zRGcJpgKxU8Cd@jXEd{|PW*{3gObx3`MLT>M0@}q0TW=gH<~F{ zfp5TWuI)F-NXSfF()VC`tgDv1@L*PwBd`{ja;7)`0 zE+UTqAi)0=^$}eGZZx=WBjQW)E&{h2y!R3DsdGkM%i`%ms}4#W)=8ebMG^58cnG}g z*>wve;6X&3G!4?^1lVI*Xv<;(?A79(23hXUm=@YHCX?hoUDztrZQwa@4HyG==|8Sf za*lwjz>7tlwAHRh9ZCL?P#3jp7e6>_>P9i%sBcTvg~yf;j%WR37AB|h=nsAoKTCWE XC2|h%L(kF^00000NkvXXu0mjfLXgk! literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xhdpi/resize.png b/app/src/main/res/mipmap-xhdpi/resize.png new file mode 100644 index 0000000000000000000000000000000000000000..8a389fdbc14ca08d6679e153bc5c2b296d0529a4 GIT binary patch literal 447 zcmV;w0YLtVP)N0(@W43cJn0v)E#2B#l& z0#%mvut_;Bct0(JyoZ)$klt)eCX?xI1$4j(cw8a(7B~YBa|3k12S2*Bgc!_!4Y@yO zK@64mbpiGYe#5*w&-_*AIf1s3K-nh&xWw9vMozJSfCEUxV+umtd_mxSaG$#_W&lPI zYUWEJeDj3>H;B>#NkR0HM2Fy7DFDDRV!jtQA3%f&N2&k_rGL_uK+FWtt9-=BXxj(? z99x-p86!)!Q1Uy`#QZ`4J&02C0s!(5HRgo?nb&G)?xP!90H6y&ys7VrY^Mrc`(u?~FLoh- z%fxOo6Y}o6K@eqbp)`|cC002ovPDHLkV1i!!xgr1n literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/resize.png b/app/src/main/res/mipmap-xxhdpi/resize.png new file mode 100644 index 0000000000000000000000000000000000000000..6a9adb38e6372f0f90c57b6d58ade6a2146ff00d GIT binary patch literal 1921 zcmV-{2Y&d8P)407YZcCXM>^X#dbQqrtNgTpAUN< zW;*j-_PKnW>G=JVd6;DHwb%Ziwbt2towYs~V1NMznB!1yR2R;+9!)`AnD!KUjUDPC zD5z_JZvh+U14(HQw-WcXE{CL!g47M_@6=1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gkI{W2whwryj+Wn|&L>LCiQm*Ot*eY#Uxojkcfq$Znjh{4V%={dKFp}a9Zelil$H@4ciaptXEcr9qUDnF^Ta1g$^D|H zexkG#*Z_Qqd|pRJftHt-F9Nqa!1Gs8l5NDYadHFjbzlMgjo+G-hee=4^$En&)eXRT z>b4NVe^L~j;)P5wIxYGt(NoI#3^x80@ze2PSfWl7>oVv?e;_ujF9Wxxa#xdL2wF+3 z)NS;4Qv>k_9t0jD-XrW}ZZ~U(iF=hBiHC`Kd|NC8zCrW|Q(1&cLr^yC+)94qPZIAB zwuTV)tF3FsPZL)hv&j^3hdUlZcwTKiG|A&NYXNaMng{#@NHQE1!ZRaB$>X?njruF=b=-O)Gyd8EX@}EstN9{FbQ-^i>*C8Z5$bYXyxsVsKTrA<7V{fj zuj^uC%fHY1op)cXK3anSJB&|ji{!CN{eA%v>T%v}92d7Zd+zHmRUb(xz+;wp%j+<> zueV&}h;ge2aJbai6RHZZqm1#}@(IS_s7NG{>H!>leF&30kt0%vFu7RWVEGUxn=Cl& z^vQ2_BZ*`M-d#ZT1I9VxtPbL1u|>$S%!bA9L@XZ0YQl3TjMcdLoO~a5Kp3lj1vP=( zdSJdtBFC%}$So_V31!#=`$rO~9?Gz-peC4S59}UEq-Ff-!93dvYQov}z%wI>wBkpm z3uoI_(0uiM#)Z5a1VOEcTl_Nh-pLqkJD eLqo&a!~X%q8cFDjzvdtS0000%1$d Dateien gelöscht + + Resize + Resize final image + Width + Height + Keep aspect ratio + Datei umbenennen Ordner umbenennen diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 576ed4770..39e4cc6f9 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -60,6 +60,13 @@ %1$d archivos eliminados + + Resize + Resize final image + Width + Height + Keep aspect ratio + Renombrar archivo Renombrar carpeta diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 49c0bd722..45bbafa39 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -60,6 +60,13 @@ %1$d file eliminati + + Resize + Resize final image + Width + Height + Keep aspect ratio + Rinomina file Rinomina cartella diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index f351c963f..fd602eca6 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -60,6 +60,13 @@ %1$d ファイルを削除しました + + Resize + Resize final image + Width + Height + Keep aspect ratio + ファイルの名前を変更 フォルダーの名前を変更 diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 5663545a0..d4f2c8c4e 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -60,6 +60,13 @@ %1$d ficheiros apagados + + Resize + Resize final image + Width + Height + Keep aspect ratio + Renomear ficheiro Renomear pasta diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 56909cddc..aebacf7af 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -61,6 +61,13 @@ Файлов удалено: %1$d + + Resize + Resize final image + Width + Height + Keep aspect ratio + Изменение имени файла Переименовать папку diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index f01f67212..6fb109fd4 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -60,6 +60,13 @@ %1$d filer borttagna + + Resize + Resize final image + Width + Height + Keep aspect ratio + Döp om fil Döp om mapp diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 39d1a0e95..5c26d1ace 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -61,6 +61,13 @@ %1$d files deleted + + Resize + Resize final image + Width + Height + Keep aspect ratio + 重命名文件 文件不能重命名 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8138eea2f..8bd34ac97 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -60,6 +60,13 @@ %1$d files deleted + + Resize + Resize final image + Width + Height + Keep aspect ratio + Rename file Rename folder