(Customize EditText, provide an interface for inserting images, and provide a reference for everyone. You can improve the functions inside by yourself. In addition to capturing the EditText keyboard, you can achieve a complete EditText (similar to QQ chat) that supports facial expression images. A small idea is to delete an image, which is to reset the EditText text. Add an image using SpannableStringImageSpan. The important code is as follows:
SmiliesEditText\bin\com\eric\main.class
SmiliesEditText\bin\com\eric\R$attr.class
SmiliesEditText\bin\com\eric\R$drawable.class
SmiliesEditText\bin\com\eric\R$id.class
SmiliesEditText\bin\com\eric\R$layout.class
SmiliesEditText\bin\com\eric\R$string.class
SmiliesEditText\bin\com\eric\R.class
SmiliesEditText\bin\com\eric\SmiliesEditText.class
SmiliesEditText\bin\classes.dex
SmiliesEditText\bin\resources.ap_
SmiliesEditText\bin\SmiliesEditText.apk
SmiliesEditText\gen\com\eric\R.java
SmiliesEditText\res\drawable-hdpi\icon.png
SmiliesEditText\res\drawable-hdpi\smile.png
SmiliesEditText\res\drawable-ldpi\icon.png
SmiliesEditText\res\drawable-mdpi\icon.png
SmiliesEditText\res\layout\main.xml
SmiliesEditText\res\values\strings.xml
SmiliesEditText\src\com\eric\main.java
SmiliesEditText\src\com\eric\SmiliesEditText.java
SmiliesEditText\.classpath
SmiliesEditText\.project
SmiliesEditText\AndroidManifest.xml
SmiliesEditText\default.properties
.....)