| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
| 4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
| 5 | 5 |
| 6 <!-- Use RelativeLayout because it has a gravity attribute, unlike FrameLayout. | 6 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 7 During infobar swap animations, two child views are added to this infobar | |
| 8 wrapper, and gravity="top" ensures they're both aligned at the top. --> | |
| 9 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 10 android:layout_width="match_parent" | 7 android:layout_width="match_parent" |
| 11 android:layout_height="wrap_content" | 8 android:layout_height="wrap_content" |
| 12 android:background="@drawable/infobar_bg" | 9 android:background="@drawable/infobar_bg" |
| 13 android:gravity="top" | |
| 14 android:minHeight="@dimen/infobar_peeking_height_with_shadow" | 10 android:minHeight="@dimen/infobar_peeking_height_with_shadow" |
| 15 android:paddingTop="@dimen/infobar_shadow_height" /> | 11 android:paddingTop="@dimen/infobar_shadow_height" /> |
| OLD | NEW |