android - Incorrect stretching of simple 9-patch image to get 1px border on high-res devices -
i want simple 1px border white background 9-patch view in android application. works fine on samsung galaxy tab 730, suprise, result on samsung nexus 10 different:
desired result (1px blue border , white background): .
actual result (1px blue border , light blue background):
the used 9-patch simple: , enlarged:
two solutions found worked me:
- dirty hack: replacing image following bigger image (that not affected rescaling on larger screen device, might affected on larger displays): , enlarged
- correct solution: moving 9-patch image folder
res/drawable-nodpi
(see 9patch stretching areas didn't mark) prevent being rescaled on devices.
Comments
Post a Comment