hani-momanii / SuperNova-Emoji

library to implement and render emojis For Android
Other
362 stars 114 forks source link

Emojicons are cut off #23

Open axelforsti opened 7 years ago

axelforsti commented 7 years ago

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
hani-momanii commented 7 years ago

can you post the TextView xml code here ?

axelforsti commented 7 years ago

Of course:

xml
hani-momanii commented 7 years ago

is the bubble background 9patch ?

axelforsti commented 7 years ago

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.

vitorhugods commented 7 years ago

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!

rohitjagtap1991 commented 7 years ago

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!

hamzaahmedkhan commented 6 years ago

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

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

hamzaahmedkhan commented 6 years ago

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.

neaenaa commented 5 years ago

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