question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emojicon in ListFragment

See original GitHub issue

Hi rockerhieu,

First, thanks for the great library, I’m trying to use your library in my project, I’m using listfragment, the code is below,

public class DetailsFragment extends ListFragment implements LoaderCallbacks<Cursor>, EmojiconGridFragment.OnEmojiconClickedListener, EmojiconsFragment.OnEmojiconBackspaceClickedListener {
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Bundle args = getArguments();
    getLoaderManager().initLoader(0, null, this);

}

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.details_listview, container, false);

}

@Override
public void onEmojiconClicked(Emojicon emojicon) {
    EmojiconsFragment.input(comment, emojicon);
}

@Override
public void onEmojiconBackspaceClicked(View v) {
    EmojiconsFragment.backspace(comment);
}

@Override
public void onEmojiconClicked(Emojicon emojicon) {
    EmojiconsFragment.input(mEditEmojicon, emojicon);
}

@Override
public void onEmojiconBackspaceClicked(View v) {
    EmojiconsFragment.backspace(mEditEmojicon);
}

}

Once I add the fragment below, to the layout

    <fragment
        android:id="@+id/emojicons"
        android:layout_width="match_parent"
        android:layout_height="220dp"
        class="com.rockerhieu.emojicon.EmojiconsFragment" />

I get the error below (abbreviated),

Binary XML file line #38: Error inflating class fragment Caused by: android.view.InflateException: Binary XML file line #38: Error inflating class fragment Caused by: java.lang.IllegalArgumentException: com.sso.android.shora.SsoActivity@42c28918 must implement interface OnEmojiconBackspaceClickedListener

when I remove the <fragment> part everything works fine, is it possible to use your library with ListFragment?

Please let me know if you need more details.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
EpsilonOrioniscommented, Jul 5, 2015

Error:(36, 13) Failed to resolve: com.rockerhieu.emojicon:library:1.1-SNAPSHOT Show in File
Show in Project Structure dialog

0reactions
rockerhieucommented, Aug 22, 2014

For Eclipse, you can reference the source code on master, so yes git clone https://github.com/rockerhieu/emojicon.git sounds good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EmojiEditText - Android Developers
EditText widget enhanced with emoji capability by using EmojiEditTextHelper . When used on devices running API 18 or below, this widget acts as...
Read more >
java.lang.IllegalArgumentException: No view found for fragment
Here EmojiFragment will create a panel of emoticons and the FrameLayout inside emoji.xml will be replaced by the EmojiFragment.
Read more >
Commits · kevalpatel2106/EmoticonGIFKeyboard · GitHub
An advance Emoticons & GIF keyboard. ... Always displaying emoticon list fragment while opening the keyboard. … - Resetting the search text box...
Read more >
Adapters – Part 4 - Styling Android
To demonstrate this we'll create a ListView which loads all of the emoticon icons from the Android AOSP source on github.
Read more >
ConvertTo-SecureString (Microsoft.PowerShell.Security)
This cmdlet returns the created SecureString object. Notes. Some characters, such as emoticons, correspond to several code points in the string that contains ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found