mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
bf133c65c3
1) EmojiTextView and EmojiEditText are used instead of using code to emojify text. 2) Emoji categories' code points are specified in XML 3) EmojiDrawer itself is a fragment, and its pages are also fragments, allowing for better memory management. Fixes #2938 Fixes #2936 Closes #3153 // FREEBIE
44 lines
2.5 KiB
XML
44 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/container"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout android:background="#ff333333"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.astuetz.PagerSlidingTabStrip android:id="@+id/tabs"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="45dp"
|
|
app:pstsShouldExpand="true"
|
|
app:pstsTabPaddingLeftRight="@dimen/emoji_drawer_left_right_padding"
|
|
app:pstsUnderlineColor="@color/emoji_tab_underline"
|
|
app:pstsIndicatorColor="@color/emoji_tab_indicator"
|
|
app:pstsIndicatorHeight="@dimen/emoji_drawer_indicator_height"
|
|
app:pstsTextAllCaps="false"/>
|
|
|
|
<org.thoughtcrime.securesms.components.RepeatableImageKey
|
|
android:id="@+id/backspace"
|
|
android:src="@drawable/ic_emoji_backspace"
|
|
android:background="@color/emoji_tab_underline"
|
|
android:paddingLeft="@dimen/emoji_drawer_left_right_padding"
|
|
android:paddingRight="@dimen/emoji_drawer_left_right_padding"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent" />
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v4.view.ViewPager
|
|
android:id="@+id/emoji_pager"
|
|
android:visibility="visible"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="#ff333333" />
|
|
|
|
</org.thoughtcrime.securesms.components.KeyboardAwareLinearLayout> |