mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-19 21:10:11 -07:00
Changes
- [Custom controls] Trigger modified when move or resize - Add option to scale buttons
This commit is contained in:
parent
4bff91e3f6
commit
e91f847134
10 changed files with 354 additions and 538 deletions
|
|
@ -129,8 +129,6 @@ public class MainActivity extends BaseMainActivity implements OnClickListener, O
|
|||
|
||||
private Button findButton(int id) {
|
||||
Button button = (Button) findViewById(id);
|
||||
button.setWidth((int) (button.getWidth() * Tools.currentDisplayMetrics.scaledDensity));
|
||||
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