Skip to content

Commit

Permalink
using TextView instead of androidx.emoji.widget.EmojiTextView to make…
Browse files Browse the repository at this point in the history
… use of app:autoSizeTextType=uniform for automatic font resizing
  • Loading branch information
mzorz committed Nov 8, 2019
1 parent 53d5779 commit e6df0f3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/src/main/res/layout/row_emoji.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.emoji.widget.EmojiTextView xmlns:android="http://schemas.android.com/apk/res/android"
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/txtEmoji"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_margin="@dimen/emoji_picker_item_margin"
android:padding="@dimen/emoji_picker_item_padding"
android:textColor="#FFFFFF"
android:textAlignment="center"
android:textSize="@dimen/emoji_picker_initial_text_size" />
app:autoSizeTextType="uniform" />

0 comments on commit e6df0f3

Please sign in to comment.