0

See bellow Image

See bellow Image

Check this link But I din't get CoreSystemContext.SCALE . now i am getting Error

Please Help me ...

Community
  • 1
  • 1
Aadi
  • 1,131
  • 2
  • 16
  • 32

1 Answers1

2

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);
Ahmad
  • 69,608
  • 17
  • 111
  • 137