I want to get a simple 1px border with white background as 9-patch for a view in android application. It works fine on the Samsung Galaxy Tab 730, but to my suprise, the result on Samsung Nexus 10 is completely different:
Desired result (1px blue border and white background): .
Actual result (1px blue border and light blue background):
The used 9-patch is very simple: , enlarged:
Two solutions I found worked for me:
res/drawable-nodpi
(see 9patch is stretching areas I didn't mark) to prevent it from being rescaled on any devices.