Make web view bigger

This commit is contained in:
Gabriel Calero 2018-07-05 16:28:09 -03:00
parent 6e3d3d457f
commit 6dae9f1c98
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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"