mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
add theartofdev.edmodo:android-image-cropper for image editing
This commit is contained in:
parent
d638f6350e
commit
734557d7cd
11 changed files with 37 additions and 2 deletions
|
@ -40,6 +40,7 @@ dependencies {
|
|||
compile 'com.github.bumptech.glide:glide:3.7.0'
|
||||
compile 'com.jakewharton:butterknife:8.0.1'
|
||||
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"
|
||||
|
||||
apt 'com.jakewharton:butterknife-compiler:8.0.1'
|
||||
|
|
|
@ -115,7 +115,8 @@
|
|||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".activities.EditActivity">
|
||||
android:name=".activities.EditActivity"
|
||||
android:label="@string/editor">
|
||||
<intent-filter>
|
||||
<action android:name="action_nextgen_edit"/>
|
||||
|
||||
|
|
|
@ -1,5 +1,17 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
14
app/src/main/res/layout/activity_edit.xml
Normal file
14
app/src/main/res/layout/activity_edit.xml
Normal 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>
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Abbrechen</string>
|
||||
<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>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 Ordner gelöscht</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancelar</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="editor">Editor</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 carpeta eliminada</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancel</string>
|
||||
<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>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 cartella eliminata</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancel</string>
|
||||
<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>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 フォルダーを削除しました</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancelar</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="editor">Editor</string>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 pasta eliminada</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancel</string>
|
||||
<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>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 mapp borttagen</item>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<string name="cancel">Cancel</string>
|
||||
<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>
|
||||
|
||||
<plurals name="folders_deleted">
|
||||
<item quantity="one">1 folder deleted</item>
|
||||
|
|
Loading…
Reference in a new issue