mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
Changes
- Experimental autoscale for control buttons. - [Custom control] Implements dynamic position.
This commit is contained in:
parent
d6417c7b5a
commit
8651abc104
9 changed files with 225 additions and 170 deletions
|
|
@ -1104,8 +1104,8 @@ public class BaseMainActivity extends LoggableActivity implements OnTouchListene
|
|||
|
||||
protected Button findButton(int id) {
|
||||
Button button = (Button) findViewById(id);
|
||||
button.setWidth((int) Tools.dpToPx(this, Tools.pxToDp(this, button.getWidth()) * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setHeight((int) Tools.dpToPx(this, Tools.pxToDp(this, button.getHeight()) * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setWidth((int) (button.getWidth() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setHeight((int) (button.getHeight() * LauncherPreferences.PREF_BUTTONSIZE));
|
||||
button.setOnTouchListener(this);
|
||||
button.setFocusable(false);
|
||||
button.setFocusableInTouchMode(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue