Android marquee effects clash with EditText

Source: Internet
Author: User

A recent project because the layout textview content is too long. The first thought is the marquee effect, so the TextView once again their own definition, although the effect of the happy lantern is achieved. Just cause there is a problem is edittext input problem, when the first click on the EditText can pop up the soft keyboard, just the soft keyboard off, again click on the TextView will not be able to play a soft keyboard, baffled its solution. So just rewrite EditText to add a click event. When the user click on the pop-up software disk, although you can click EditText Pop-up soft keyboard, but cannot input content, do not want to be the focus of the problem, but the page edittext is out of focus state. Let me be very puzzled, the beginning of that layout is in the ListView, I when the ListView does not set adapter. EditText Normal. Want to go. I use a layout that has a self-defined textview to achieve the marquee effect, so I copy a layout again. It's no problem to change the definition of a marquee to TextView. Fortunately I use the marquee effect of the layout is common.

So don't be in a layout with EditText when you realize the marquee effect. EditText can no longer eject the soft keyboard in addition to the first time, even if the use of code pop-up soft keyboard can not be entered.

Android marquee effects clash with EditText

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.