You can use imagespan to mix images and text. There are many online tutorials. Attach a drawable to charsequence. It is a little effort to achieve dynamic online expressions. First, use the GIF Parsing tool to parse a GIF into N bitmaps and the delay value for playing each bitmap. Next, implement a drawable by yourself, and change Bitmap Based on the time point to implement the dynamic expression function.
GIF Parsing foundAlgorithmIf there is a problem, the parsed bitmap background will change from transparent to black, and then it will be better to change one.
Android 3. In versions above, if there is no text between multiple consecutive images during text-and-text mixing, the layout will be messy. After searching for half a day, I found a solution from the post below, but I still did not solve it after I tried it. I hope to see this articleArticleYou can give some advice.
A space is added between the image and the image.
Http://android.bigresource.com/Android-ImageSpan-is-cut-off-incorrectly-aligned-1dFyTxELg.html