Replace image editor.
BIN
res/drawable-hdpi/ic_brush_highlight_32.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-hdpi/ic_brush_marker_32.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
BIN
res/drawable-hdpi/ic_check_circle_32.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-hdpi/ic_crop_32.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-hdpi/ic_crop_lock_32.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-hdpi/ic_crop_unlock_32.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-hdpi/ic_emoji_32.png
Executable file
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable-hdpi/ic_flip_32.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-hdpi/ic_rotate_32.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
res/drawable-hdpi/ic_text_32.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable-hdpi/ic_trash_filled_32.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB |
BIN
res/drawable-hdpi/ic_undo_32.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.3 KiB |
BIN
res/drawable-mdpi/ic_brush_highlight_32.png
Executable file
After Width: | Height: | Size: 709 B |
BIN
res/drawable-mdpi/ic_brush_marker_32.png
Executable file
After Width: | Height: | Size: 744 B |
Before Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-mdpi/ic_check_circle_32.png
Executable file
After Width: | Height: | Size: 809 B |
Before Width: | Height: | Size: 949 B |
BIN
res/drawable-mdpi/ic_crop_32.png
Executable file
After Width: | Height: | Size: 867 B |
BIN
res/drawable-mdpi/ic_crop_lock_32.png
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
res/drawable-mdpi/ic_crop_unlock_32.png
Executable file
After Width: | Height: | Size: 1.0 KiB |
BIN
res/drawable-mdpi/ic_emoji_32.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-mdpi/ic_flip_32.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 830 B |
BIN
res/drawable-mdpi/ic_rotate_32.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
BIN
res/drawable-mdpi/ic_text_32.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-mdpi/ic_trash_filled_32.png
Executable file
After Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 993 B |
BIN
res/drawable-mdpi/ic_undo_32.png
Executable file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xhdpi/ic_brush_highlight_32.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/ic_brush_marker_32.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.4 KiB |
BIN
res/drawable-xhdpi/ic_check_circle_32.png
Executable file
After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable-xhdpi/ic_crop_32.png
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
res/drawable-xhdpi/ic_crop_lock_32.png
Executable file
After Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable-xhdpi/ic_crop_unlock_32.png
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
res/drawable-xhdpi/ic_emoji_32.png
Executable file
After Width: | Height: | Size: 4.4 KiB |
BIN
res/drawable-xhdpi/ic_flip_32.png
Executable file
After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.8 KiB |
BIN
res/drawable-xhdpi/ic_rotate_32.png
Executable file
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable-xhdpi/ic_text_32.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
BIN
res/drawable-xhdpi/ic_trash_filled_32.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB |
BIN
res/drawable-xhdpi/ic_undo_32.png
Executable file
After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.3 KiB |
BIN
res/drawable-xxhdpi/ic_brush_highlight_32.png
Executable file
After Width: | Height: | Size: 2.7 KiB |
BIN
res/drawable-xxhdpi/ic_brush_marker_32.png
Executable file
After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 9.7 KiB |
BIN
res/drawable-xxhdpi/ic_check_circle_32.png
Executable file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.9 KiB |
BIN
res/drawable-xxhdpi/ic_crop_32.png
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
res/drawable-xxhdpi/ic_crop_lock_32.png
Executable file
After Width: | Height: | Size: 4.2 KiB |
BIN
res/drawable-xxhdpi/ic_crop_unlock_32.png
Executable file
After Width: | Height: | Size: 4.4 KiB |
BIN
res/drawable-xxhdpi/ic_emoji_32.png
Executable file
After Width: | Height: | Size: 8.0 KiB |
BIN
res/drawable-xxhdpi/ic_flip_32.png
Executable file
After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.3 KiB |
BIN
res/drawable-xxhdpi/ic_rotate_32.png
Executable file
After Width: | Height: | Size: 5.2 KiB |
BIN
res/drawable-xxhdpi/ic_text_32.png
Executable file
After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.1 KiB |
BIN
res/drawable-xxhdpi/ic_trash_filled_32.png
Executable file
After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.8 KiB |
BIN
res/drawable-xxhdpi/ic_undo_32.png
Executable file
After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 6.0 KiB |
BIN
res/drawable-xxxhdpi/ic_brush_highlight_32.png
Executable file
After Width: | Height: | Size: 4.3 KiB |
BIN
res/drawable-xxxhdpi/ic_brush_marker_32.png
Executable file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 15 KiB |
BIN
res/drawable-xxxhdpi/ic_check_circle_32.png
Executable file
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 7.8 KiB |
BIN
res/drawable-xxxhdpi/ic_crop_32.png
Executable file
After Width: | Height: | Size: 4.8 KiB |
BIN
res/drawable-xxxhdpi/ic_crop_lock_32.png
Executable file
After Width: | Height: | Size: 6.0 KiB |
BIN
res/drawable-xxxhdpi/ic_crop_unlock_32.png
Executable file
After Width: | Height: | Size: 6.4 KiB |
BIN
res/drawable-xxxhdpi/ic_emoji_32.png
Executable file
After Width: | Height: | Size: 12 KiB |
BIN
res/drawable-xxxhdpi/ic_flip_32.png
Executable file
After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.1 KiB |
BIN
res/drawable-xxxhdpi/ic_rotate_32.png
Executable file
After Width: | Height: | Size: 7.6 KiB |
BIN
res/drawable-xxxhdpi/ic_text_32.png
Executable file
After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 8.8 KiB |
BIN
res/drawable-xxxhdpi/ic_trash_filled_32.png
Executable file
After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.0 KiB |
BIN
res/drawable-xxxhdpi/ic_undo_32.png
Executable file
After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 8.8 KiB |
@ -1,20 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
android:id="@+id/activity_main"
|
android:id="@+id/activity_main"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
tools:context="org.thoughtcrime.securesms.scribbles.ScribbleActivity">
|
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.scribbles.widget.ScribbleView
|
<org.thoughtcrime.securesms.imageeditor.ImageEditorView
|
||||||
android:id="@+id/scribble_view"
|
android:id="@+id/image_editor_view"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.scribbles.ScribbleHud
|
<org.thoughtcrime.securesms.scribbles.ImageEditorHud
|
||||||
android:id="@+id/scribble_hud"
|
android:id="@+id/scribble_hud"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
@ -34,7 +34,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_trash_outline_36" />
|
android:src="@drawable/ic_trash_filled_32" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/scribble_undo_button"
|
android:id="@+id/scribble_undo_button"
|
||||||
@ -42,23 +42,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_undo_36" />
|
android:src="@drawable/ic_undo_32" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/scribble_draw_button"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/ic_marker_36" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/scribble_highlight_button"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/ic_highlighter_36" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/scribble_text_button"
|
android:id="@+id/scribble_text_button"
|
||||||
@ -66,7 +50,23 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_text_36" />
|
android:src="@drawable/ic_text_32" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_draw_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_brush_marker_32" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_highlight_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_brush_highlight_32" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/scribble_sticker_button"
|
android:id="@+id/scribble_sticker_button"
|
||||||
@ -74,7 +74,15 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_camera_emoji_36" />
|
android:src="@drawable/ic_emoji_32" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_crop_button"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_crop_32" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/scribble_confirm_button"
|
android:id="@+id/scribble_confirm_button"
|
||||||
@ -82,7 +90,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_check_circle_filled_36" />
|
android:src="@drawable/ic_check_circle_32" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -113,6 +121,36 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@+id/scribble_color_picker"
|
app:layout_constraintTop_toBottomOf="@+id/scribble_color_picker"
|
||||||
app:layout_constraintVertical_bias="0.0" />
|
app:layout_constraintVertical_bias="0.0" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_crop_flip"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_flip_32"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toEndOf="@+id/scribble_crop_rotate" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_crop_rotate"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_rotate_32"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/scribble_crop_aspect_lock"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/ic_crop_lock_32"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|
||||||
|
|
||||||
</merge>
|
</merge>
|
@ -25,6 +25,7 @@
|
|||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/mediasend_caption_and_rail"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom"
|
android:layout_gravity="bottom"
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<FrameLayout
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
android:id="@+id/fragment_container"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/black"
|
|
||||||
tools:context="org.thoughtcrime.securesms.scribbles.ScribbleActivity">
|
|
||||||
|
|
||||||
</FrameLayout>
|
|
@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<merge tools:parentTag="FrameLayout"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<ImageView android:id="@+id/image_view"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:scaleType="centerInside"
|
|
||||||
android:adjustViewBounds="true"/>
|
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.scribbles.widget.MotionView
|
|
||||||
android:id="@+id/motion_view"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"/>
|
|
||||||
|
|
||||||
<org.thoughtcrime.securesms.scribbles.widget.CanvasView
|
|
||||||
android:id="@+id/canvas_view"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/transparent"/>
|
|
||||||
|
|
||||||
</merge>
|
|