Android Question How to avoid different 9Patch appearance on views Label and Button?

fredo

Well-Known Member
Licensed User
Longtime User
If the same 9Patch is applied to a Label and a Button it gives a different appearance on a "Nougat" device.

07-12-_2016_18-15-10.jpg

Can this somehow be avoided?

 

Attachments

  • fredo0_test9patch.zip
    9.8 KB · Views: 185

fredo

Well-Known Member
Licensed User
Longtime User
Thanks for your efforts on this.

..to look like..
..the Label.

While trying to find a grip on this I tried using different 9patch sizes at it seems that this effect occours when the 9patch-image is bigger than the view.

08-12-_2016_17-20-38.jpg

It simply is neccessary to have the 9patch dimensions smaller than the receiving view to avoid the effect.

I think this is ok so far.
 
Upvote 0
Top