Emojicon
ist eine Bibliothek, um so etwas für Android zu implementieren.
Verwenden Sie diese Bibliothek in der Datei build.gradle
.
compile 'com.rockerhieu.emojicon:library:<latest-version>'
Hier ist xml-Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:emojicon="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.rockerhieu.emojicon.EmojiconTextView
android:id="@+id/txtEmojicon"
android:text="I \ue32d emojicon"
emojicon:emojiconAlignment="baseline"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<com.rockerhieu.emojicon.EmojiconEditText
android:id="@+id/editEmojicon"
android:text="I \ue32d emojicon"
emojicon:emojiconSize="28sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<fragment
android:id="@+id/emojicons"
android:layout_width="match_parent"
android:layout_height="220dp"
class="com.rockerhieu.emojicon.EmojiconsFragment"/>
</LinearLayout>
Ausgang:
Hinweis: Dies ist für die Information jetzt Replace
diese Fragment
und implementieren GridView
was Sie wollen. und ändern sich danach.
Für weitere Details besuchen Sie diese: https://github.com/rockerhieu/emojicon