You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm tring to move all the emoji pngs from drawable-nodpi into internal storage, but when showing all of the emojis in a TextView, load emoji from the drawable-nodpi dir is near 10 times faster than loading from the internal storage. Here is my modified EmojiconSpan.java:
publicDrawablegetDrawable() {
if (mDrawable == null) {
try {
// I want to load from the file pathmDrawable = Drawable.createFromPath(mFilePath);
// load from resource// mDrawable = mContext.getResources().getDrawable(mResourceId);mHeight = mSize;
mWidth = mHeight * mDrawable.getIntrinsicWidth() / mDrawable.getIntrinsicHeight();
mTop = (mTextSize - mHeight) / 2;
mDrawable.setBounds(0, mTop, mWidth, mTop + mHeight);
} catch (Exceptione) {
// swallow
}
}
returnmDrawable;
}
I dont know why it happens? And how can I move emojis to internal storage and keep it load as fast as it was?
The text was updated successfully, but these errors were encountered:
I'm tring to move all the emoji pngs from drawable-nodpi into internal storage, but when showing all of the emojis in a TextView, load emoji from the drawable-nodpi dir is near 10 times faster than loading from the internal storage. Here is my modified EmojiconSpan.java:
I dont know why it happens? And how can I move emojis to internal storage and keep it load as fast as it was?
The text was updated successfully, but these errors were encountered: