Use TextInputLayout for in_reply_to
This commit is contained in:
parent
fb3925978f
commit
a420954bda
|
@ -47,29 +47,38 @@
|
|||
android:text="@{String.valueOf(viewModel.content.length)}"
|
||||
android:textAlignment="textEnd"
|
||||
app:layout_constraintBottom_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="@id/editInReplyTo"
|
||||
app:layout_constraintEnd_toEndOf="@id/editInReplyToLayout"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editInReplyTo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:ems="10"
|
||||
android:hint="In reply to"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="textUri"
|
||||
android:nextFocusForward="@id/content"
|
||||
android:padding="3dp"
|
||||
android:singleLine="true"
|
||||
android:text="@={viewModel.inReplyTo}"
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/editInReplyToLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/labelCounter" />
|
||||
app:layout_constraintTop_toBottomOf="@id/labelCounter"
|
||||
>
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/editInReplyTo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56sp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:ems="10"
|
||||
android:hint="In reply to"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="textUri"
|
||||
android:lines="1"
|
||||
android:nextFocusForward="@id/content"
|
||||
android:padding="3dp"
|
||||
android:singleLine="true"
|
||||
android:text="@={viewModel.inReplyTo}" />
|
||||
|
||||
</android.support.design.widget.TextInputLayout>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/content"
|
||||
|
@ -88,7 +97,7 @@
|
|||
android:text="@={viewModel.content}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/editInReplyTo"
|
||||
app:layout_constraintTop_toBottomOf="@id/editInReplyToLayout"
|
||||
tools:layout_editor_absoluteY="101dp" />
|
||||
|
||||
<EditText
|
||||
|
|
Loading…
Reference in New Issue
Block a user