Git Product home page Git Product logo

iosstyleedittext's People

Contributors

ipl 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

Watchers

 avatar  avatar  avatar

iosstyleedittext's Issues

Issue in erasing a emoji

I am not able to erase emoji with single hit of backspace button,i had hit it many times,i have hash map of Unicode ,from which i am appending a Unicode to edit text
public class EmojiUtils
{

public static HashMap<Integer, String> unicode = new HashMap<Integer, String>();
static
{

    unicode.put(1, "\uD83D\uDE04");//Smiling Face with Open Mouth and Smiling Eyes
    unicode.put(2, "\uD83D\uDE03");//Smiling Face With Open Mouth
    unicode.put(3, "\uD83D\uDE00");//Grinning Face
    unicode.put(4, "\uD83D\uDE0A");//Grinning Face with Smiling Eyes
    unicode.put(5, "\u263A\uFE0F");//Smiling Face

}

and this how i am appending an Unicode to edit text
Integer key = index;
Log.d("emoji", "index of clicked emoji is" + index);
Log.d("emoji", "Unicode of clicked emoji is" + EmojiUtils.unicode.get(key));
SpannableString spannable =new SpannableString(EmojiUtils.unicode.get(key));
//String cs = EmojiUtils.unicode.get(key);
int cursorPosition = edtMessage.getSelectionStart();
edtMessage.getText().insert(cursorPosition, spannable);

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.