项目作者: AnkitKiet

项目描述 :
Android Library for EditText
高级语言: Java
项目地址: git://github.com/AnkitKiet/EmojiConverter.git
创建时间: 2017-11-20T19:25:28Z
项目社区:https://github.com/AnkitKiet/EmojiConverter

开源协议:

下载


EmojiConverter

This is an Android library used to convert text to Emojis in edittext. This is the most stable version of this library till date. This is under more modifications. Use It For Free.

Android Arsenal

Preview

Sample

Installation

Gradle

Add below code in build.gradle

  1. allprojects {
  2. repositories {
  3. maven { url 'https://jitpack.io' }
  4. }
  5. }

Add a dependency

  1. dependencies {
  2. compile 'com.github.AnkitKiet:EmojiConverter:1.14'
  3. }

Maven

Add below code for Maven installation

  1. <repositories>
  2. <repository>
  3. <id>jitpack.io</id>
  4. <url>https://jitpack.io</url>
  5. </repository>
  6. </repositories>

Add a dependency

  1. <dependency>
  2. <groupId>com.github.AnkitKiet</groupId>
  3. <artifactId>EmojiCOnverter</artifactId>
  4. <version>1.15</version>
  5. </dependency>

How To Use

paste below code in java file

  1. EmojiConverter edt = (EmojiConverter) findViewById (R.id.edtRawText); //Try not adding Textwatcher on this
  2. final EmojiConverter emojiConverter=new EmojiConverter(MainActivity.this);
  3. editText.setText(emojiConverter.convertEmoji()); //use this on an event, like a button click

paste below code in layout xml file.

  1. <edu.texttoemoji.EmojiConverter
  2. android:id="@+id/edtRawText"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:hint="type something"></edu.texttoemoji.EmojiConverter>

License

  1. Copyright 2017 Ankit Maurya
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.