Android QQ login interface drawing code

First look at the renderings:

First, several problems encountered in the process:

1. Customize the background of EditText

2. Runtime EditText automatically gets focus

3. The hint is cleared when the focus is obtained, not after input

4. The occurrence time of the clear button (when the focus is obtained and there is input)

---These problems have been solved one by one---

Here are the codes:

Layout fragment_ Main (question 2)

Background of button and EditText (question 1)

1.bg_ button

2.bg_ edittext

3.strings

Mainactivity (questions 3, 4,...)

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>