edsilfer / emoji-keyboard Goto Github PK
View Code? Open in Web Editor NEWA library that provides an emoji-keyboard implementation for Android applications
License: Apache License 2.0
A library that provides an emoji-keyboard implementation for Android applications
License: Apache License 2.0
hi,
I need to display the keyboard layout at the center of the screen with emoji values
My activity is descending EmojiCompatActivity
but from the onCreate()
I am unable to call prepareKeyboard()
. How to resolve it?
Thanks for grate lib.
Was just about to Fork it but wanted to ask if Anybody forked this so it works in Fragment?
The onBackPressed()
in EmojiCompatActivity.java
could be moved out and handled in Fragment
Here are the links I have used in my dependencies
compile 'br.com.instachat:emoji-library:1.0.10'
compile 'br.com.edsilfer.android:emoji-library:1.0.10'
They both are coming unavailable
plz help
Ik have a Bluetooth keyboard connected to my phone, and I also have a Chromebook with a physical keyboard. When I run your sample project on my phone and Chromebook I can't type: everything acts just weird.
I've tried other emoji keyboard packages like yours and they're all broken when you use a hardware keyboard... :(
Can you give it a test yourself?
The list view scroll lags(glitches) when i have EmojiconTextView in inflated row.With Normal TextView there is no lag.
Hi,
I has implemented your EmojiCompatActivity . When keyboard does not show, my activity can back when call onBackpress(). However , when I request focus to EmojiEditext to show keyboard or show EmojiKeyboard , after that I press back button to call onBackpress(). It does work anymore.
Here I found in your EmojiCompatActivity code :
@Override
public void onBackPressed() {
if (this.mOnBackPressed != null) {
if (!this.mOnBackPressed.onBackPressed()) {
super.onBackPressed();
} // it lack some case to back here
} else {
super.onBackPressed();
}
}
EmojiEditText userMessageInput = (EmojiEditText)v.findViewById(R.id.input_message_fragment);
EmojiKeyboardLayout emojiKeyboardLayout=(EmojiKeyboardLayout) v.findViewById(R.id.keyboard_emoj);
emojiKeyboardLayout.prepareKeyboard(mActivity,userMessageInput);
EmojiKeyboardLayout emojiKeyboardLayout=(EmojiKeyboardLayout) v.findViewById(R.id.keyboard_emoj);
emojiKeyboardLayout.prepareKeyboard(mActivity,userMessageInput);
there are no method to get typing event
I'm trying to use this amazing library, that seems to have everything I need for the emoji implementation and I really want to use this!
I added compile 'br.com.instachat:emoji-library:0.0.2'
to my build.gradle.
I have modified my ChatActivity as follow:
public class ChatActivity extends EmojiCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chat);
EmojiEditText input = (EmojiEditText) findViewById(R.id.message_edittext);
prepareKeyboard(this, input);
}
}
and my layout is the following:
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="horizontal">
<br.com.instachat.emojilibrary.model.layout.EmojiEditText
android:id="@+id/message_edittext"
android:layout_width="200dp"
android:layout_height="50dp"
android:hint="Message"
app:emojiSize="25dip"/>
</LinearLayout>
And I got this compilation error (and also Android Studio show the error )
Error:(10, 9) error: cannot find symbol method prepareKeyboard(ChatActivity,EmojiEditText)
I know that the library has been correctly imported because I am capable of using EmojiEditText
class in Android Studio, and also I can look into EmojiCompatActivity
by the IDE. As I can see there is no prepareKeyboard
method inside EmojiCompatActivity
and I have not found it in any
android docs, so I'm questioning myself where is this method descending from?
Thank you, Cheers
In the wiki the version of the gradle compile is
compile 'br.com.instachat:emoji-library:0.0.2'
instad of
compile 'br.com.instachat:emoji-library:1.0.8'
That gradle build script in the ReadMe can't seem to find anything. Is it a different repository than jcenter or mavenCentral()?
The edit text does not support multi line
Hello,
I have added your library to my project in Android Studio and got this error.
Error:Execution failed for task ':app:processDebugManifest'. \> Manifest merger failed : Attribute application@name value=(com.giacomodeglinnocenti.myappname.MyAppName) from AndroidManifest.xml:15:9-36 is also present at [br.com.instachat:emoji-library:0.0.2] AndroidManifest.xml:12:9-62 value=(br.com.instachat.emojilibrary.util.App). Suggestion: add 'tools:replace="android:name"' to <application> element at AndroidManifest.xml:14:5-92:19 to override.
In my build.gradle I have added the following line:
compile 'br.com.instachat:emoji-library:0.0.2'
The error goes away if I modify my AndroidManifest.xml
's application node adding tools:replace="android:name"
, but if course I want my application name to be MyAppName and not Instachat.
What do I have to do?
Thanks.
This is what the chat screen looks like:
This is what it looks like as soon as the keyboard shows:
The emoji keyboard shows normally, but because of this weird error, the emoji keyboard and normal keyboard can be above each other.
How can I achieve what I want, which is a normal opened keyboard instead of a keyboard that pushes my entire content up with a lot of empty space showing?
I added the panel like this:
<br.com.instachat.emojilibrary.model.layout.WhatsAppPanel
android:id="@+id/bottompanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="false"/>
If I change the height to 75dp the keyboard behaves perfectly, but of course the emoji keyboard doesn't show up no more. What can I do?
Please check following error log.
Fatal Exception: java.lang.RuntimeException: Missing type parameter.
at com.google.gson.reflect.TypeToken.getSuperclassTypeParameter(Unknown Source)
at com.google.gson.reflect.TypeToken.(Unknown Source)
at br.com.instachat.emojilibrary.util.SharedPreferencesManager$1.(Unknown Source)
at br.com.instachat.emojilibrary.util.SharedPreferencesManager.pushEmoji(Unknown Source)
at br.com.instachat.emojilibrary.controller.emoji_pages.FragmentEmojiRecents.onCreateView(Unknown Source)
at android.support.v4.app.FragmentManagerImpl.modifiesAlpha(Unknown Source)
at android.support.v4.app.FragmentManagerImpl.modifiesAlpha(Unknown Source)
at android.support.v4.app.BackStackRecord.run(Unknown Source)
at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(Unknown Source)
at android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss(Unknown Source)
at android.support.v4.app.FragmentPagerAdapter.setPrimaryItem(Unknown Source)
at android.support.v4.view.ViewPager.initViewPager(Unknown Source)
at android.support.v4.view.ViewPager.populate(Unknown Source)
at android.support.v4.view.ViewPager.onMeasure(Unknown Source)
at android.view.View.measure(View.java:20136)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:825)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:511)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1279)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:659)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
at android.view.View.measure(View.java:20136)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:825)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:511)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
at android.support.v7.widget.ContentFrameLayout.onMeasure(Unknown Source)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1705)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:797)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:657)
at android.view.View.measure(View.java:20136)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6285)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:214)
at com.android.internal.policy.DecorView.onMeasure(DecorView.java:714)
at android.view.View.measure(View.java:20136)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2661)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1594)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1863)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1479)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7019)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:907)
at android.view.Choreographer.doCallbacks(Choreographer.java:709)
at android.view.Choreographer.doFrame(Choreographer.java:644)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:893)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6269)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Hi, how can I adapt this library in React Native to use in my Android App?
Hello,
EditText not seen when a keyboard is open. I have changed in
android:windowSoftInputMode=adjustPan
manifest file and remove static keyboard height.
Keyboard not update height as per different size of devices (especially Samsung device)
I have also tried to get keyboard height and set emoji_keyboard layout.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.