SuperNova-Emoji icon indicating copy to clipboard operation
SuperNova-Emoji copied to clipboard

Emojicons are cut off

Open AxeMaster99 opened this issue 7 years ago • 9 comments

First of all thanks for this nice library. I got a small problem tho: when I have a TextView with only Emojicons inside, they are cut off at the top. When i add some Text, they aren't (see screenshot). Is there something to solve this problem? Adding a blankspace helps but isn't the best solution. Thanks in advance! issue

AxeMaster99 avatar Apr 10 '17 21:04 AxeMaster99

can you post the TextView xml code here ?

hani-momanii avatar Apr 11 '17 07:04 hani-momanii

Of course: xml

AxeMaster99 avatar Apr 11 '17 08:04 AxeMaster99

is the bubble background 9patch ?

hani-momanii avatar Apr 11 '17 08:04 hani-momanii

Yes it is. But when I delete the background 9 patch and run the application without any design stuff, the problem still occurs and android keeps cutting off the emojicons.

AxeMaster99 avatar Apr 11 '17 09:04 AxeMaster99

Hello. I'm having the same issue. Also using 9patch. I tried this library for the first time in the 0.0.2 version, and didn't update it for ages. No problems with 9patch back then. Can't tell in which version the bug started to happen.

And also, thanks for this nice library!

vitorhugods avatar Apr 23 '17 11:04 vitorhugods

Hi. I am facing the same issue. With the updated library version if I show only emojis without text then they cut off! So I am switching back to version 0.0.2 I am using 9patch as others. Looking forward to getting a new version with the fix. Thanks in advance!

rohitjagtap1991 avatar Aug 25 '17 21:08 rohitjagtap1991

app:emojiconAlignment="baseline" app:emojiconSize="s18"

add these in your attributes. change emoji size according to your textSize.

hamzaahmedkhan avatar Oct 22 '17 12:10 hamzaahmedkhan

you are using emoji size s28 but text size s18, so your TextView height is wrap_content and it's wrapping according to s18 size of text.

hamzaahmedkhan avatar Oct 22 '17 12:10 hamzaahmedkhan

You can either use the same size for emojiconSize and textSize, or, add an attribute lineHeight making it the same size as emojiconSize.

neaenaa avatar Feb 13 '19 16:02 neaenaa