Some emojis small size (wrong size)
See original GitHub issueHello, I’m using the TwitterEmoji and lib version v0.5.1, and everything works perfect.
But now, we are migrating to the iOS emojis, and lib v0.6.0. The problem is, some emojis are resized to the min size (no clue why some works, others no) If I change the icon (wrong resize) to the iOS version using the last lib with iOS emojis. Then it will show it perfect on new version with iOS or in 0.5.1 with TwitterEmoji version.
Looking at https://unicode.org/emoji/charts/full-emoji-list.html we are seeing some problem could appear by “detective” vs “man detective”. But other are weird, because are just one “clamp”
My view is this, the same on old version and new version
<com.vanniktech.emoji.EmojiTextView
android:id="@+id/userEmoji"
android:layout_width="@dimen/emoji_text_size" -> 60dp
android:layout_height="@dimen/emoji_text_size"
android:gravity="center"
android:minHeight="@dimen/emoji_size"
android:minWidth="@dimen/emoji_size" -> 44dp
app:emojiSize="@dimen/emoji_size"
app:layout_constrainedHeight="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tool:text="🤗" />
I have tried the README tip with lineHeight
but it doesn’t change anything even on a new brand and no extra params EmojiTextView on other layout.
As extra point, the emojis with this result on some blurry icons by the resize, while on the old version with Twitter (maybe because are much plain) doesn’t appear to be blurry.
Thank’s for this great lib!.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
Can I ask why is EmojiTextView used for this anyway? For your usecase EmojiImageView looks better…
Ok, thanks. @mario could you throw more info about that class and if you could resolve the questions will be really apreciate.
Thanks