Commit 727057d2 authored by Robbie McElrath's avatar Robbie McElrath Committed by Commit Bot

[WebLayer] Fix bottom controls positioning in shell app

This CL changes the layout of the shell app so the main weblayer
FrameLayout has the correct height. The incorrect height was messing
with the positioning of the bottom bar when scrolling it.

Change-Id: I81808ee10a4c3a46ce25c4e5755c086199da5743
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402286Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Robbie McElrath <rmcelrath@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805779}
parent cd34939b
...@@ -3,28 +3,32 @@ ...@@ -3,28 +3,32 @@
Use of this source code is governed by a BSD-style license that can be Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. --> found in the LICENSE file. -->
<RelativeLayout <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<ImageButton <LinearLayout
android:id="@+id/controls_menu_button" android:orientation="horizontal"
android:layout_width="25dp" android:layout_width="match_parent"
android:layout_height="25dp" android:layout_height="wrap_content">
android:scaleType="fitXY" <ImageButton
android:paddingLeft="5px" android:id="@+id/controls_menu_button"
android:paddingRight="5px" android:layout_width="25dp"
android:src="@android:drawable/ic_menu_more" android:layout_height="25dp"
android:background="@android:color/transparent" /> android:scaleType="fitXY"
<TextView android:paddingLeft="5px"
android:id="@+id/version_text" android:paddingRight="5px"
android:layout_width="wrap_content" android:src="@android:drawable/ic_menu_more"
android:layout_height="wrap_content" android:background="@android:color/transparent" />
android:layout_toRightOf="@id/controls_menu_button" <TextView
android:paddingTop="5px" /> android:id="@+id/version_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="5px" />
</LinearLayout>
<FrameLayout <FrameLayout
android:id="@+id/weblayer" android:id="@+id/weblayer"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent" />
android:layout_below="@id/controls_menu_button" /> </LinearLayout>
</RelativeLayout>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment