From f54974ed7ff99330669d865c7da42154ef76106b Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Sun, 2 Sep 2018 12:18:08 +0300 Subject: [PATCH] remove floating label on EditorView --- .../java/gr/thmmy/mthmmy/editorview/EditorView.java | 2 +- app/src/main/res/layout/editor_view.xml | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java b/app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java index fdec350c..a4ccc119 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java +++ b/app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java @@ -59,7 +59,7 @@ public class EditorView extends LinearLayout { TypedArray a = context.getTheme().obtainStyledAttributes(attrs, R.styleable.EditorView, 0, 0); try { - edittextWrapper.setHint(a.getString(R.styleable.EditorView_hint)); + editText.setHint(a.getString(R.styleable.EditorView_hint)); } finally { a.recycle(); } diff --git a/app/src/main/res/layout/editor_view.xml b/app/src/main/res/layout/editor_view.xml index d249f889..4f691fbf 100644 --- a/app/src/main/res/layout/editor_view.xml +++ b/app/src/main/res/layout/editor_view.xml @@ -134,14 +134,17 @@ + android:orientation="horizontal" + android:layout_marginTop="4dp"> + android:layout_gravity="center" + android:orientation="vertical" + app:hintEnabled="false"> @@ -163,7 +166,7 @@ android:id="@+id/submit_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="bottom" + android:layout_gravity="center" android:contentDescription="@string/submit" android:padding="4dp" app:srcCompat="@drawable/ic_send_accent_24dp"