See bellow Image
Check this link But I din't get CoreSystemContext.SCALE . now i am getting Error
Please Help me ...
See bellow Image
Check this link But I din't get CoreSystemContext.SCALE . now i am getting Error
Please Help me ...
The original author of this code replied to this question in the comments:
That is the variable holding the device density.
So just use this:
float density = getResources().getDisplayMetrics().density;
int extraTapArea = (int) (13 * density + 0.5);