Saturday, February 22, 2014

9PNG with uncomfortable, expert guidance!


 



These are two buttons XML file attribute settings, use the picture for .9. Png, and the results made me very depressed.


The question is:
1 Why the button above text missing? (I tried to put a button background to non .9. Png ordinary pictures, text is normal)
2 Why did not the second button rounded up. I know this is not enough because the width of the problem, but I use .9. Png ah, stretching the place is not rounded ah.

Attached:. .9 Png Figure (should be able to see it?):
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
9.png is login_loginbtn?
Reply:
cited a floor cclovescw reply:
9.png is login_loginbtn?

Almost yes.
login_loginbtn are two pictures, that is, at the click of the button and not two different pictures when clicked, using xml write ah.
Here is one 9.png posted a.
Reply:
Picture seems to be a problem
Black side did not draw well
Reply:
reference to the third floor zyxel60b reply:
picture seems to be a problem
Black side did not draw a good

e, how should I paint it? Seek guidance!
Reply:

Reference to see it
Reply:
You can also achieve the same effect http://blog.xianqu.org/2012/04/android-borders-and-radius-corners/ over XML 9.png
Reply:
There padding 9patch default property settings, not much said, adding padding attributes like the button in.
Reply:
You're cut too .9 poked. . . Give you a quick way to the left top point one point, the right bottom painting full line, ctrl + s get
Reply:
reference to the 8th floor b87936260 reply:
you cut it too .9 poked. . . Give you a quick way to the left top point one point, the right bottom painting full line, ctrl + s get


I am a novice, do not laugh ah!
.9 Represents the right and below the text area, nothing to draw not on behalf of the entire text area are you?
Reply:
reference to the 7th floor knxw0001 reply:
9patch have padding default property settings, not much said, adding padding attributes like in the button.


Positive solution! I added android: padding = "0dp" perfect solution to the problem, very grateful!
Reply:
reference to the 9th floor books1958 reply:
Quote: references to the 8th floor b87936260 reply:

You're cut too .9 poked. . . Give you a quick way to the left top point one point, the right bottom painting full line, ctrl + s get


I am a novice, do not laugh ah!
.9 Represents the right and below the text area, nothing to draw not on behalf of the entire text area are you?

Documentation is to say how much the right and below the text area is drawn on how much it

No comments:

Post a Comment