轻量级前端框架助力开发者提升项目效率与性能
663
2022-10-29
在你的Android应用程序中渲染emoji(使用emojicon)只要一行代码
Emojiconize
Render emoji (using emojicon) in your Android application with just 1 line of code.
Example
import io.github.rockerhieu.emojiconize.Emojiconize;// Your activity must be a subclass of AppCompatActivitypublic class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { // Emojiconize the whole activity, must call before `super.onCreate()` Emojiconize.activity(this).go(); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); }}
Usage
Emojiconize.activity(activity).go(): support emoji rendering for the given activity, must call before activity.super.onCreate()Emojiconize.view(view).go(): support emoji rendering for the given view and all of its children.
Building in IntelliJ
Via Gradle:
compile 'io.github.rockerhieu:emojiconize:
Building in Eclipse
Acknowledgements
Emojiconize uses emojicon for rendering emoji and is based on the idea of MdLayoutInflaterFactory from android-md-core.
Contributing
Please fork this repository and contribute back using pull requests.
Any contributions, large or small, major features, bug fixes, additional language translations, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.
License
The MIT License
Copyright (c) 2016 Hieu RockerPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the "Software"),to deal in the Software without restriction, including without limitationthe rights to use, copy, modify, merge, publish, distribute, sublicense,and/or sell copies of the Software, and to permit persons to whom theSoftware is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALLTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHERDEALINGS IN THE SOFTWARE.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~