mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 18:53:16 +02:00
Make web view bigger
This commit is contained in:
parent
6e3d3d457f
commit
6dae9f1c98
2 changed files with 4 additions and 4 deletions
|
@ -138,8 +138,8 @@ public class InterfaceActivity extends QtActivity implements WebViewFragment.OnW
|
|||
int widthPx = Math.max(size.x, size.y);
|
||||
int heightPx = Math.min(size.x, size.y);
|
||||
|
||||
layoutParams.x = (int) (widthPx - 220 * getResources().getDisplayMetrics().xdpi / 160);
|
||||
layoutParams.y = (int) (heightPx - 182 * getResources().getDisplayMetrics().ydpi / 160);
|
||||
layoutParams.x = (int) (widthPx - 262 * getResources().getDisplayMetrics().xdpi / 160);
|
||||
layoutParams.y = (int) (heightPx - 217 * getResources().getDisplayMetrics().ydpi / 160);
|
||||
layoutParams.resolveLayoutDirection(View.LAYOUT_DIRECTION_RTL);
|
||||
qtLayout.addView(webSlidingDrawer, layoutParams);
|
||||
webSlidingDrawer.setVisibility(View.GONE);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<SlidingDrawer android:id="@+id/drawer"
|
||||
android:layout_width="180dp"
|
||||
android:layout_height="148dp"
|
||||
android:layout_width="216dp"
|
||||
android:layout_height="178dp"
|
||||
android:layout_gravity="bottom|right"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:layout_marginRight="11dp"
|
||||
|
|
Loading…
Reference in a new issue