Add TextInputLayouts to categories and content
This commit is contained in:
parent
2a18db4167
commit
b1d55f8745
|
@ -34,105 +34,106 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:overScrollMode="always"
|
android:overScrollMode="always"
|
||||||
android:scrollbars="vertical"
|
android:scrollbars="vertical"
|
||||||
|
android:paddingTop="8dp"
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/labelCounter"
|
|
||||||
android:layout_width="83dp"
|
|
||||||
android:layout_height="23dp"
|
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_marginRight="8dp"
|
|
||||||
android:layout_marginTop="16dp"
|
|
||||||
android:gravity="end"
|
|
||||||
android:text="@{String.valueOf(viewModel.content.length)}"
|
|
||||||
android:textAlignment="textEnd"
|
|
||||||
app:layout_constraintBottom_toTopOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="@id/editInReplyToLayout"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintVertical_bias="0.0" />
|
|
||||||
|
|
||||||
<android.support.design.widget.TextInputLayout
|
<android.support.design.widget.TextInputLayout
|
||||||
android:id="@+id/editInReplyToLayout"
|
android:id="@+id/editInReplyToLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="@string/in_reply_to"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/labelCounter"
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
>
|
|
||||||
|
|
||||||
<android.support.design.widget.TextInputEditText
|
<android.support.design.widget.TextInputEditText
|
||||||
android:id="@+id/editInReplyTo"
|
android:id="@+id/editInReplyTo"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="56sp"
|
android:layout_height="56sp"
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_marginStart="8dp"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:ems="10"
|
android:ems="10"
|
||||||
android:hint="@string/in_reply_to"
|
|
||||||
android:imeOptions="actionNext"
|
android:imeOptions="actionNext"
|
||||||
android:inputType="textUri"
|
android:inputType="textAutoComplete|textUri"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
|
android:maxLines="1"
|
||||||
android:nextFocusForward="@id/content"
|
android:nextFocusForward="@id/content"
|
||||||
android:padding="3dp"
|
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@={viewModel.inReplyTo}" />
|
android:text="@={viewModel.inReplyTo}" />
|
||||||
|
|
||||||
</android.support.design.widget.TextInputLayout>
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
<EditText
|
<android.support.design.widget.TextInputLayout
|
||||||
android:id="@+id/content"
|
android:id="@+id/contentLayout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="230dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:layout_marginStart="8dp"
|
|
||||||
android:ems="10"
|
|
||||||
android:gravity="top"
|
|
||||||
android:hint="@string/content"
|
android:hint="@string/content"
|
||||||
android:imeOptions="actionNext"
|
app:counterEnabled="true"
|
||||||
android:inputType="textMultiLine"
|
|
||||||
android:nextFocusForward="@id/editCategory"
|
|
||||||
android:padding="3dp"
|
|
||||||
android:singleLine="false"
|
|
||||||
android:text="@={viewModel.content}"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/editInReplyToLayout"
|
app:layout_constraintTop_toBottomOf="@id/editInReplyToLayout">
|
||||||
tools:layout_editor_absoluteY="101dp" />
|
|
||||||
|
|
||||||
<EditText
|
<android.support.design.widget.TextInputEditText
|
||||||
android:id="@+id/editCategory"
|
android:id="@+id/content"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="46dp"
|
android:layout_height="100sp"
|
||||||
android:layout_marginEnd="8dp"
|
android:ems="10"
|
||||||
android:layout_marginStart="8dp"
|
android:gravity="top"
|
||||||
android:layout_marginTop="8dp"
|
android:imeOptions="actionNext"
|
||||||
android:ems="10"
|
android:inputType="textMultiLine|textCapSentences|textAutoComplete"
|
||||||
android:hint="@string/categories_space_separated"
|
android:lines="5"
|
||||||
android:imeOptions="actionDone"
|
android:nextFocusForward="@id/editCategory"
|
||||||
android:inputType="text"
|
android:scrollbars="vertical"
|
||||||
android:padding="3dp"
|
android:text="@={viewModel.content}"
|
||||||
android:singleLine="true"
|
tools:layout_editor_absoluteY="101dp" />
|
||||||
android:text="@={viewModel.category}"
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
|
<android.support.design.widget.TextInputLayout
|
||||||
|
android:id="@+id/editCategoryLayout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:hint="@string/categories"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/content" />
|
app:layout_constraintTop_toBottomOf="@id/contentLayout">
|
||||||
|
|
||||||
|
<android.support.design.widget.TextInputEditText
|
||||||
|
android:id="@+id/editCategory"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="56sp"
|
||||||
|
android:ems="10"
|
||||||
|
android:imeOptions="actionDone"
|
||||||
|
android:inputType="text"
|
||||||
|
android:lines="1"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:text="@={viewModel.category}" />
|
||||||
|
|
||||||
|
</android.support.design.widget.TextInputLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/listLayout"
|
android:id="@+id/listLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="8dp"
|
android:gravity="top|fill"
|
||||||
android:layout_marginStart="8dp"
|
android:orientation="vertical"
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/editCategory">
|
app:layout_constraintTop_toBottomOf="@id/editCategoryLayout">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/textView2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:text="@string/syndication"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:layout_marginLeft="8dp"
|
||||||
|
android:layout_marginStart="8dp" />
|
||||||
|
|
||||||
<ListView
|
<ListView
|
||||||
android:id="@+id/listSyndication"
|
android:id="@+id/listSyndication"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="100dp"
|
android:layout_height="150dp"
|
||||||
app:list="@{client.syndicates}" />
|
app:list="@{client.syndicates}" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -145,7 +146,7 @@
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="8dp"
|
||||||
android:onClick="sendPost"
|
android:onClick="sendPost"
|
||||||
android:text="@string/post"
|
android:text="@string/post"
|
||||||
app:layout_constraintEnd_toEndOf="@id/editCategory"
|
app:layout_constraintEnd_toEndOf="@id/editCategoryLayout"
|
||||||
app:layout_constraintTop_toBottomOf="@id/listLayout"
|
app:layout_constraintTop_toBottomOf="@id/listLayout"
|
||||||
tools:layout_editor_absoluteY="445dp" />
|
tools:layout_editor_absoluteY="445dp" />
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<string name="title_activity_authenticated">AuthenticatedActivity</string>
|
<string name="title_activity_authenticated">AuthenticatedActivity</string>
|
||||||
<string name="account_type">Indieauth</string>
|
<string name="account_type">Indieauth</string>
|
||||||
<string name="in_reply_to">In reply to</string>
|
<string name="in_reply_to">In reply to</string>
|
||||||
<string name="content">Content</string>
|
<string name="categories">Categories (space separated)</string>
|
||||||
<string name="categories_space_separated">Categories (space separated)</string>
|
|
||||||
<string name="post">Post</string>
|
<string name="post">Post</string>
|
||||||
|
<string name="syndication">Syndicate to</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user