mirror of https://github.com/ThmmyNoLife/mTHMMY
78 lines
3.3 KiB
78 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context=".activities.create_content.CreateContentActivity"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@dimen/appbar_padding_top"
|
|
android:theme="@style/ToolbarTheme">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
android:gravity="center"
|
|
app:popupTheme="@style/ToolbarTheme">
|
|
</androidx.appcompat.widget.Toolbar>
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/subject_input"
|
|
android:layout_width="240dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/appbar"
|
|
android:layout_margin="16dp"
|
|
android:hint="@string/subject">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:lines="1"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:inputType="text"/>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<gr.thmmy.mthmmy.views.editorview.EditorView
|
|
android:id="@+id/main_content_editorview"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/subject_input"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
app:hint="@string/message"/>
|
|
|
|
<gr.thmmy.mthmmy.views.editorview.EmojiKeyboard
|
|
android:id="@+id/emoji_keyboard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal.NoPadding"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/progress_bar_height"
|
|
android:indeterminate="true"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/appbar"
|
|
app:layout_anchorGravity="bottom|center"
|
|
app:mpb_indeterminateTint="@color/accent"
|
|
app:mpb_progressStyle="horizontal" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|