emojicon
emojicon copied to clipboard
Emoji grid is empty
i add fragment to layout but emoji grid is empty!! emoji tabs show and change when slide to side but nothing show in grid!
sorry, i think this is my mistake! when i use
getSupportFragmentManager() .beginTransaction() .replace(R.id.emojicons, EmojiconsFragment.newInstance(useSystemDefault)) .commit();
emoji item disappear.! it's ok now :+1:
i found the problem
first i think it's belong to this method
getSupportFragmentManager() .beginTransaction() .replace(R.id.emojicons, EmojiconsFragment.newInstance(useSystemDefault)) .commit();
remove it and works fine, but the problem is using nested fragment in viewPager and should use
getChildFragmentManager() in EmojisPagerAdapter initialization
new EmojisPagerAdapter(getChildFragmentManager(), Arrays.asList( EmojiconRecentsGridFragment.newInstance(mUseSystemDefault), EmojiconGridFragment.newInstance(People.DATA, recents, mUseSystemDefault), EmojiconGridFragment.newInstance(Nature.DATA, recents, mUseSystemDefault), EmojiconGridFragment.newInstance(Objects.DATA, recents, mUseSystemDefault), EmojiconGridFragment.newInstance(Places.DATA, recents, mUseSystemDefault), EmojiconGridFragment.newInstance(Symbols.DATA, recents, mUseSystemDefault) ));
to reproduce this bug, put fragment in RelativeLayout and test it ` <RelativeLayout android:id="@+id/ExtraPanel" android:layout_width="fill_parent" android:layout_height="220dp" android:layout_alignParentBottom="true" android:background="#009999" android:visibility="gone">
<fragment
android:id="@+id/emojicons"
android:layout_width="fill_parent"
android:layout_height="220dp"
android:layout_alignParentBottom="true"
class="com.aquila.lebird.emoji.EmojiconsFragment"
/>
</RelativeLayout>`
@saeed-rz can you send a minimum example project here?
@rockerhieu yes i can, but currently i am very busy, i try send sample project very soon
sorry for late
where should i upload sample project?
Here!
On Thu, Oct 6, 2016 at 2:43 AM Saeed_rz [email protected] wrote:
where should i upload sample project?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rockerhieu/emojicon/issues/121#issuecomment-251778055, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOPYfmbl5Nb1DpN_R8RYFTfMhzTHNYRks5qw_3RgaJpZM4HtNk0 .
i cant upload zip file here, so uploaded on another server source the zip file contain "src" folder of project the fragment show at the bottom of view, and with some customization can show emoji on keyboard position hope its helpful
is sample project helpful?