mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Increase the size of the virtual controller settings button
This commit is contained in:
parent
cf62b4ed95
commit
b58ac367ee
@ -5,6 +5,7 @@
|
||||
package com.limelight.binding.input.virtual_controller;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.FrameLayout;
|
||||
@ -109,7 +110,10 @@ public class VirtualController {
|
||||
relative_layout.removeAllViews();
|
||||
removeElements();
|
||||
|
||||
layoutParamsButtonConfigure = new RelativeLayout.LayoutParams(50, 50);
|
||||
DisplayMetrics screen = context.getResources().getDisplayMetrics();
|
||||
|
||||
int buttonSize = (int)(screen.heightPixels*0.05f);
|
||||
layoutParamsButtonConfigure = new RelativeLayout.LayoutParams(buttonSize, buttonSize);
|
||||
relative_layout.addView(buttonConfigure, layoutParamsButtonConfigure);
|
||||
|
||||
VirtualControllerConfigurationLoader.createDefaultLayout(this, context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user