problem with mark position of checkbox in android L
rexi1r opened this issue · comments
rexi1r commented
rexi1r commented
The problem is in the below code
Rect src = new Rect(40 * step, 0, (40 * step) + 40, 40);
Rect dst = new Rect(0, 0, this.getWidth() - 2, this.getHeight());
wrong size and wrong position.
how can i solve this?
Remasky commented
Same here. Need help ;)
rexi1r commented
no solution???????
Pedro Paulo Amorim commented
This library uses drawable to provide this type of checkBox. This problem happens because the resolution of G3 is too big and the file at resource can't handle this resolution.
Jose Figueredo commented
I had the same problem in a LG G4. Simple workaround (not the best temporary helps):
int slice = sprite.getWidth() / 12;
int height = sprite.getHeight();
Rect src = new Rect(slice * step, 0, (slice * step) + slice, height);
Rect dst = new Rect(0, 0, this.getWidth() - 2, this.getHeight());