mirror of https://github.com/ThmmyNoLife/mTHMMY
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
3.3 KiB
80 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.design.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">
|
|
|
|
<android.support.design.widget.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">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
app:contentInsetStartWithNavigation="0dp"
|
|
app:popupTheme="@style/ToolbarTheme">
|
|
|
|
<TextView
|
|
android:id="@+id/toolbar_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="@color/white" />
|
|
</android.support.v7.widget.Toolbar>
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<android.support.design.widget.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">
|
|
|
|
<android.support.design.widget.TextInputEditText
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
<gr.thmmy.mthmmy.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="topic message"/>
|
|
|
|
<gr.thmmy.mthmmy.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" />
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|