The beautification of Android EditText

Source: Internet
Author: User

Today to make a page, there is a edittext, so it took up its landscaping.

EditText's beautification, my first reaction is to display a picture on the left side of EditText, which will look better.

Set the properties of the display picture to the left: android:drawableleft= "@drawable/Picture name"

After the beautification of the final following

At first, the picture on the left I was looking for is square, then the effect on the interface will appear a situation is: the left side is square, the right is an ellipse, very uncoordinated.

I was going to get a control to display the picture, and then put a edittext on the right, but there's actually a situation where the different resolutions

, the space of the picture may be displayed in an inconsistent size with the edittext, so that there is a very uncoordinated

So, I found a picture of the circle, and then displayed on the left side of the EditText, and then edittext the left corner of the arc increased, so that you can make

The picture covers the 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.