Index: remoting/android/java/res/layout/desktop.xml |
diff --git a/remoting/android/java/res/layout/desktop.xml b/remoting/android/java/res/layout/desktop.xml |
index e85aeae184f3a66e11c95168449a0bf7ac5570d7..ceaf53805342f91bfc1ebe8c7a5f27b771cb6a7b 100644 |
--- a/remoting/android/java/res/layout/desktop.xml |
+++ b/remoting/android/java/res/layout/desktop.xml |
@@ -5,18 +5,31 @@ |
found in the LICENSE file. |
--> |
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
android:layout_width="match_parent" |
- android:layout_height="match_parent" |
- android:orientation="vertical"> |
- <android.support.v7.widget.Toolbar |
- android:id="@+id/toolbar" |
- android:layout_width="match_parent" |
- android:layout_height="wrap_content" |
- android:background="?attr/colorPrimary" |
- android:elevation="4dp"/> |
+ android:layout_height="match_parent"> |
<org.chromium.chromoting.DesktopView android:id="@+id/desktop_view" |
android:layout_width="match_parent" |
- android:layout_height="0dp" |
- android:layout_weight="1"/> |
-</LinearLayout> |
+ android:layout_height="match_parent"/> |
+ <RelativeLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" |
+ android:fitsSystemWindows="true" |
+ android:elevation="4dp"> |
+ <android.support.v7.widget.Toolbar |
+ android:id="@+id/toolbar" |
+ android:alpha="0.85" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:fitsSystemWindows="true" |
+ android:background="?attr/colorPrimary"/> |
+ <FrameLayout |
+ android:id="@+id/resize_detector" |
+ android:layout_below="@id/toolbar" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" |
+ android:fitsSystemWindows="true" |
+ android:background="@android:color/transparent"> |
+ </FrameLayout> |
+ </RelativeLayout> |
+</RelativeLayout> |