Use textview in Android to achieve dynamic expressions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.