Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: chrome/android/java/res/layout/infobar_wrapper.xml

Issue 1560573002: Reduce infobar lag on KitKat from 1000ms to 100ms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: appease the FindBugs gods Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/infobar_wrapper.xml
diff --git a/chrome/android/java/res/layout/infobar_wrapper.xml b/chrome/android/java/res/layout/infobar_wrapper.xml
index 21b226470060d3afa1fd45528d45d8e2cf3785b6..86ee21e429690743e41cb76ad1e287693ea80d3b 100644
--- a/chrome/android/java/res/layout/infobar_wrapper.xml
+++ b/chrome/android/java/res/layout/infobar_wrapper.xml
@@ -3,13 +3,9 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
-<!-- Use RelativeLayout because it has a gravity attribute, unlike FrameLayout.
- During infobar swap animations, two child views are added to this infobar
- wrapper, and gravity="top" ensures they're both aligned at the top. -->
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/infobar_bg"
- android:gravity="top"
android:minHeight="@dimen/infobar_peeking_height_with_shadow"
android:paddingTop="@dimen/infobar_shadow_height" />

Powered by Google App Engine
This is Rietveld 408576698