add theartofdev.edmodo:android-image-cropper for image editing

This commit is contained in:
tibbi 2016-10-05 20:47:58 +02:00
parent d638f6350e
commit 734557d7cd
11 changed files with 37 additions and 2 deletions

View file

@ -40,6 +40,7 @@ dependencies {
compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.jakewharton:butterknife:8.0.1' compile 'com.jakewharton:butterknife:8.0.1'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0' compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.5.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.1'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
apt 'com.jakewharton:butterknife-compiler:8.0.1' apt 'com.jakewharton:butterknife-compiler:8.0.1'

View file

@ -115,7 +115,8 @@
</activity> </activity>
<activity <activity
android:name=".activities.EditActivity"> android:name=".activities.EditActivity"
android:label="@string/editor">
<intent-filter> <intent-filter>
<action android:name="action_nextgen_edit"/> <action android:name="action_nextgen_edit"/>

View file

@ -1,5 +1,17 @@
package com.simplemobiletools.gallery.activities package com.simplemobiletools.gallery.activities
class EditActivity : SimpleActivity() { import android.os.Bundle
import com.simplemobiletools.gallery.R
import com.theartofdev.edmodo.cropper.CropImageView
import kotlinx.android.synthetic.main.activity_edit.*
class EditActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_edit)
crop_image_view.apply {
guidelines = CropImageView.Guidelines.OFF
}
}
} }

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black">
<com.theartofdev.edmodo.cropper.CropImageView
android:id="@+id/crop_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>

View file

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

View file

@ -31,6 +31,7 @@
<string name="cancel">Cancelar</string> <string name="cancel">Cancelar</string>
<string name="set_as_wallpaper">Establecer como fondo de pantalla</string> <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="set_as_wallpaper_failed">Error al establecer fondo de pantalla</string>
<string name="editor">Editor</string>
<plurals name="folders_deleted"> <plurals name="folders_deleted">
<item quantity="one">1 carpeta eliminada</item> <item quantity="one">1 carpeta eliminada</item>

View file

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

View file

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

View file

@ -31,6 +31,7 @@
<string name="cancel">Cancelar</string> <string name="cancel">Cancelar</string>
<string name="set_as_wallpaper">Definir como fundo de ecrã</string> <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="set_as_wallpaper_failed">Falha ao definir como fundo de ecrã</string>
<string name="editor">Editor</string>
<plurals name="folders_deleted"> <plurals name="folders_deleted">
<item quantity="one">1 pasta eliminada</item> <item quantity="one">1 pasta eliminada</item>

View file

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

View file

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