mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
[Feature request] Customizable mouse size
This commit is contained in:
parent
6a4eccb07b
commit
3fba4ab3a0
5 changed files with 36 additions and 6 deletions
|
|
@ -171,6 +171,15 @@ public class BaseMainActivity extends LoggableActivity {
|
|||
//this.mouseToggleButton = findButton(R.id.control_togglemouse);
|
||||
this.touchPad = (LinearLayout) findViewById(R.id.main_touchpad);
|
||||
this.mousePointer = (ImageView) findViewById(R.id.main_mouse_pointer);
|
||||
this.mousePointer.post(new Runnable(){
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
ViewGroup.LayoutParams params = mousePointer.getLayoutParams();
|
||||
params.width = (int) (mousePointer.getWidth() / 100f * LauncherPreferences.PREF_MOUSESCALE);
|
||||
params.height = (int) (mousePointer.getHeight() / 100f * LauncherPreferences.PREF_MOUSESCALE);
|
||||
}
|
||||
});
|
||||
|
||||
this.contentLog = (LinearLayout) findViewById(R.id.content_log_layout);
|
||||
this.contentScroll = (ScrollView) findViewById(R.id.content_log_scroll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue