Skip to content

Commit

Permalink
Allow text autosizing on emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Nov 23, 2020
1 parent e1e56e6 commit ea7a157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions WordPress/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
@dimen/emphasis_extra_low
</item>

<dimen name="text_sz_extra_extra_small">7sp</dimen>
<dimen name="text_sz_extra_small">10sp</dimen>
<dimen name="text_sz_small">12sp</dimen>
<dimen name="text_sz_medium">14sp</dimen>
Expand Down
4 changes: 3 additions & 1 deletion WordPress/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,9 @@
<style name="ModalLayoutPickerCategoryEmoji" parent="ModalLayoutPickerText">
<item name="android:layout_width">@dimen/mlp_categories_emoji_size</item>
<item name="android:layout_height">@dimen/mlp_categories_emoji_size</item>
<item name="android:textSize">@dimen/text_sz_medium</item>
<item name="autoSizeMaxTextSize">@dimen/text_sz_medium</item>
<item name="autoSizeMinTextSize">@dimen/text_sz_extra_extra_small</item>
<item name="autoSizeTextType">uniform</item>
<item name="android:layout_marginStart">@dimen/mlp_category_horizontal_margin</item>
<item name="android:layout_marginEnd">@dimen/mlp_category_horizontal_central_margin</item>
<item name="android:textAppearance">?attr/textAppearanceBody2</item>
Expand Down

0 comments on commit ea7a157

Please sign in to comment.