From 1f100b2221ab66087e3f5932cef4b73ec912f0dd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 8 Sep 2018 12:11:39 +0200 Subject: Began emoji selector fragment :sparkles: :construction: --- app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt') diff --git a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt index 1dd39c9..7aa9b07 100644 --- a/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt +++ b/app/src/main/java/me/texx/Texx/PhotoEditorActivity.kt @@ -70,6 +70,9 @@ class PhotoEditorActivity : AppCompatActivity() { // draw button button_draw.setOnClickListener { toggleDrawing() } + // emoji button + button_emoji.setOnClickListener { toggleEmojiMenu() } + // type button button_type.setOnClickListener { toggleTextEditing("") } @@ -93,6 +96,14 @@ class PhotoEditorActivity : AppCompatActivity() { }) } + private fun toggleEmojiMenu() { + + } + + fun onEmojiSelection() { + + } + private fun toggleDrawing() { currentlyDrawing = !currentlyDrawing photoEditor.setBrushDrawingMode(currentlyDrawing) -- cgit v1.2.3