Giter Club home page Giter Club logo

emoji-keyboard's People

Contributors

bastiotutuama avatar edsilfer avatar leoassuncao avatar pfives avatar way2jatin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emoji-keyboard's Issues

Keyboard covers EditText when shown

Hello,

when showing the Keyboard it covers the EditText. The smiley to open the emoji-fragment for example can hardly be seen. I am using the WhatsAppPanel in my xml-file.

screenshot_2016-08-07-20-09-05

Anybody forked this so it works in Fragment

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

Unable to download your library via gradle

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

input is broken when using hardware keyboard

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?

Onbackpress not working

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();
       }
   }

How to prepareKeyboard in fragment class

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);

Keyboard suggestions displayed over the editText

As said in the title, when the keyboard is shown, suggestions are hiding a part of the editText (see attachment)
screenshot_20170612-111226

A solution could be to disable the suggestions but I need them actually...

Please help me finding a solution :)

Cannot resolve symbol 'prepareKeyboard'

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

Error in the wiki

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'

Add to Maven Central

That gradle build script in the ReadMe can't seem to find anything. Is it a different repository than jcenter or mavenCentral()?

Duplicate android:name in manifest's application

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.

Keyboard pushes entire screen up and leaves space

This is what the chat screen looks like:
no keyboard

This is what it looks like as soon as the keyboard shows:
keyboard

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?

App crash on 7.0

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)

EditText not shown in when keyboard open

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.