mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
[android] Split out an EmojiTextInputView from TextInputViews
This also removes the TextInputController whose job is now done by the view.
This commit is contained in:
@@ -48,31 +48,12 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/card_background">
|
||||
|
||||
<android.support.v7.widget.AppCompatImageButton
|
||||
android:id="@+id/emoji_toggle"
|
||||
android:layout_width="@dimen/text_input_height"
|
||||
android:layout_height="@dimen/text_input_height"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:padding="@dimen/margin_small"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_emoji_toggle"
|
||||
app:tint="?attr/colorControlNormal"/>
|
||||
|
||||
<com.vanniktech.emoji.EmojiEditText
|
||||
android:id="@+id/input_text"
|
||||
<org.briarproject.briar.android.view.EmojiTextInputView
|
||||
android:id="@+id/emojiTextInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@android:color/transparent"
|
||||
android:inputType="textMultiLine|textCapSentences"
|
||||
android:maxLines="4"
|
||||
android:minHeight="@dimen/text_input_height"
|
||||
android:paddingLeft="2dp"
|
||||
android:paddingStart="2dp"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
tools:ignore="RtlSymmetry"
|
||||
tools:text="Line 1\nLine 2\nLine 3"/>
|
||||
app:maxTextLines="4"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="@dimen/text_input_height"
|
||||
|
||||
Reference in New Issue
Block a user