AndroidEmoji
j.s 🇨🇳
AndroidEmoji
Features
- API > 9
- Support load emoji from file.
- Support load emoji asynchronously.
- Suppoet apple,google,twitter,emojione, Get source.
- More thin.
Screen Record
XhsEmoticonsKeyboard
If you need a keyboard --> XhsEmoticonsKeyboard
Samples
You can download a sample APK
Gradle Dependency
Users of your library will need add the jitpack.io repository:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
and:
dependencies {
// see branch/master
// without any emoji,just a lib to parse emoji, very thin.
// you have to get emoji source and load them from file or other by yourself. ->
// https://github.com/w446108264/AndroidEmoji/blob/master/AndroidEmoji/simple/assets/
compile 'com.github.w446108264:AndroidEmoji:1.3'
// see branch/withsource
// include some emoji sources
// compile 'com.github.w446108264:AndroidEmoji:1.3-withsource'
}
--
Simple
// The frist, you should put some emoji images to your project.
// see demo!
Spannable spannable = EmojiDisplay.filterFromResource(tv_content.getContext(),
new SpannableStringBuilder(content),
EmojiDisplay.getFontHeight(tv_content),EmojiDisplay.HEAD_NAME, null);
tv_content.setText(spannable);
Thanks
Contact & Help
Please fell free to contact me if there is any problem when using the library.
- email: [email protected]
License
MIT License
Copyright (c) 2017 w446108264
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.