Browse Source

EditorView init

pull/45/head
Thodoris1999 6 years ago
parent
commit
8677f8dec8
  1. 10
      app/src/main/java/gr/thmmy/mthmmy/utils/EditorView.java
  2. 45
      app/src/main/res/layout/editor_view.xml

10
app/src/main/java/gr/thmmy/mthmmy/utils/EditorView.java

@ -0,0 +1,10 @@
package gr.thmmy.mthmmy.utils;
import android.content.Context;
import android.widget.LinearLayout;
public class EditorView extends LinearLayout {
public EditorView(Context context) {
super(context);
}
}

45
app/src/main/res/layout/editor_view.xml

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!--bold, italic, etc buttons-->
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<android.support.design.widget.TextInputLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<EditText
android:id="@+id/quick_reply_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/quick_reply"
android:inputType="textMultiLine" />
</android.support.design.widget.TextInputLayout>
<android.support.v7.widget.AppCompatImageButton
android:id="@+id/quick_reply_submit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginBottom="5dp"
android:layout_marginEnd="5dp"
android:background="@color/card_background"
android:contentDescription="@string/submit"
app:srcCompat="@drawable/ic_send_accent_24dp" />
</LinearLayout>
</LinearLayout>
Loading…
Cancel
Save