emojicon icon indicating copy to clipboard operation
emojicon copied to clipboard

Binary XML file: Error inflating class fragment

Open larrytech7 opened this issue 9 years ago • 5 comments

Unable to inflate my layout when i use this fragment that holds a set of emojis. Both EmojiFragment and EmojiGridFragment are unable to be inflated in my layout.

larrytech7 avatar Feb 17 '16 12:02 larrytech7

Post your xml

SalmanTariq avatar Feb 18 '16 11:02 SalmanTariq

just passing by and saw this - you get that error if you don't implement the click interfaces like the sample code. This is the error at the top of the stack trace when the info at the bottom shows the real problem. Also extend FragmentActivity instead of Activity - i got this error and that fixes it. hope this helps, nice library.

bsautner avatar Feb 19 '16 21:02 bsautner

I am using this in a Fragment not even in an Activity

larrytech7 avatar Feb 26 '16 22:02 larrytech7

I'll try to reproduce the error, and paste my xml and error generated later for better assistance.

larrytech7 avatar Feb 26 '16 22:02 larrytech7

same problem here, when using in fragment

alefz3r0 avatar Sep 15 '16 22:09 alefz3r0