mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
Autoscale buttons
This commit is contained in:
parent
6229a66d01
commit
d87f0d464d
1 changed files with 1 additions and 1 deletions
|
|
@ -1104,7 +1104,7 @@ public class BaseMainActivity extends LoggableActivity implements OnTouchListene
|
|||
|
||||
protected Button findButton(int id) {
|
||||
Button button = (Button) findViewById(id);
|
||||
button.setWidth((int) (button.getWidth() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setWidth((int) (button.getWidth() * Tools.currentDisplayMetrics.scaledDensity));
|
||||
button.setHeight((int) (button.getHeight() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setOnTouchListener(this);
|
||||
button.setFocusable(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue