In many android applications, we can often see the text edit box with rounded corners, that is how to achieve it? Such as the following figure:
Solutions from CSDN Q, the following is just one more method, see http://ask.csdn. net/questions/885
Requires two shape drawing files
For EditText at the top, to call this, top_edittext_bg:
android: shape = "rectangle"> android: color = "# e2e2e2">
android: radius = "1dp"
android: bottomLeftRadius = "0.1dp"
android: bottomRightRadius = "0.1dp"
android: topLeftRadius = "5dp"
android: topRightRadius = "5dp">
For intermediate EditText, call this, bottom_edittext_bg:
android: shape = "rectangle"> android: color = "# e2e2e2">
android: radius = "1dp"
android: bottomLeftRadius = "5dp"
android: bottomRightRadius = "5dp"
android: topLeftRadius = "0.1dp"
android: topRightRadius = "0.1dp">
Then set this in the android: background = "@ drawable / RESPECTIVE_XMLS" attribute associated EditText's
Reply:
Good resource, accept it, will be used to get, thank you!
Reply:
Reply:
Well, I looked at the
Reply:
Yes, Thanks!
Reply:
Great find for a long time, thank you for sharing.
Reply:
Thank you for sharing
Reply:
Thanks learn about
Reply:
Why then, do not be a background to OK it?
Reply:
This is just one way Oh, if you have other ways to stick out, oh, the original address http://ask .csdn.net/questions/885
Reply:
Reply:
Good resources, learn from the next
Reply:
The top one, I was new,
Reply:
Thank you! ~ ~ ~
Reply:
This text box look good. Like a
Reply:
Good. . . The top one. .
Reply:
Great, collections
Reply:
Reply:
Great, collections
Reply:
Long time no see you in the quiz. . .
Reply:
Reply:
Generally allow artists to be directly background on OK.
Reply:
Solutions from CSDN Q, the following is just one more method, see http://ask.csdn.net/questions/885
Reply:
So concerned about me? Kinda makes me flattered. . .
Recently doing a few projects on csdn
Reply:
Reply:
Must pay attention ~
I was so concerned about you, you actually do not concern me
Reply:
This method Yes Yes
Reply:
're Looking for this stuff, thank you for sharing
Reply:
Haha, good things, conceal!
Reply:
Questions can also be directly used to Favorites http://ask.csdn.net/questions/885 < br />
Reply:
Haha, thank you! ! Hee hee, through our efforts, I think it will be better and better in several communities, but will also increase our level of fuel it!
Reply:
Must have the time and remember to look oh ~ Q & A
Reply:
Good good collection
Reply:
Thank learn under
Reply:
Reply:
Good resource, accept it, will be used to get, thank you!
Reply:
Good to learn about
Reply:
Thank for sharing ~ ~ @ @ @! ! ! !
Reply:
Reply:
It is looking for this thing
Reply:
Reply:
Good learning resources, accept, thank you
Reply:
Multi stroll quiz , there is a lot to learn, oh ~
Reply:
Learning under ~ ~ ~
Reply:
Reply:
Learning, thank landlord! !
No comments:
Post a Comment