emojicon icon indicating copy to clipboard operation
emojicon copied to clipboard

Emoji grid is empty

Open saeed-rz opened this issue 8 years ago • 9 comments

i add fragment to layout but emoji grid is empty!! emoji tabs show and change when slide to side but nothing show in grid!

saeed-rz avatar Mar 09 '16 22:03 saeed-rz

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:

saeed-rz avatar Mar 09 '16 22:03 saeed-rz

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 avatar Mar 10 '16 22:03 saeed-rz

@saeed-rz can you send a minimum example project here?

rockerhieu avatar Aug 03 '16 06:08 rockerhieu

@rockerhieu yes i can, but currently i am very busy, i try send sample project very soon

saeed-rz avatar Aug 03 '16 16:08 saeed-rz

sorry for late

saeed-rz avatar Oct 05 '16 19:10 saeed-rz

where should i upload sample project?

saeed-rz avatar Oct 05 '16 19:10 saeed-rz

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 .

rockerhieu avatar Oct 06 '16 01:10 rockerhieu

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

saeed-rz avatar Oct 06 '16 08:10 saeed-rz

is sample project helpful?

saeed-rz avatar Nov 06 '16 06:11 saeed-rz