mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
1. Manually request focus for input fields and show keyboard This is needed when targetting API 28 which doesn't give focus anymore automatically like it used to be. Closes #1505 2. Remember keyboard states across screen rotations This also upgrades the emoji library and gets rid of the KeyboardAwareLinearLayout that is still a relict from the time when we were using Signal's emoji implementation. 3. Move soft keyboard showing/hiding into UiUtils
36 lines
1.3 KiB
XML
36 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<merge
|
|
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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
tools:parentTag="android.widget.LinearLayout"
|
|
tools:showIn="@layout/fragment_reblog">
|
|
|
|
<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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@android:color/transparent"
|
|
android:imeOptions="actionSend"
|
|
android:inputType="textMultiLine|textCapSentences|textAutoCorrect"
|
|
android:minHeight="@dimen/text_input_height"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
tools:text="Line 1\nLine 2\nLine 3"/>
|
|
|
|
</merge>
|