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

Side by Side Diff: chrome/android/java/res/layout/bottom_control_container.xml

Issue 2625923002: Introduce the bottom sheet class for Chrome Home (Closed)
Patch Set: fix findbugs Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2016 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 <org.chromium.chrome.browser.toolbar.ToolbarControlContainer xmlns:android="http ://schemas.android.com/apk/res/android" 5
6 android:id="@+id/control_container" 6 <org.chromium.chrome.browser.widget.BottomSheet
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 android:id="@+id/bottom_sheet"
7 android:layout_width="match_parent" 9 android:layout_width="match_parent"
8 android:layout_height="wrap_content" 10 android:layout_height="wrap_content" >
9 android:layout_gravity="bottom" 11
10 android:minHeight="@dimen/control_container_height" > 12 <org.chromium.chrome.browser.toolbar.ToolbarControlContainer
11 <view 13 android:id="@+id/control_container"
12 class="org.chromium.chrome.browser.toolbar.ToolbarControlContainer$Toolb arViewResourceFrameLayout"
13 android:id="@+id/toolbar_container"
14 android:layout_width="match_parent" 14 android:layout_width="match_parent"
15 android:layout_height="wrap_content"> 15 android:layout_height="wrap_content"
16 <ImageView 16 android:minHeight="@dimen/control_container_height" >
17 android:id="@+id/toolbar_shadow" 17 <view
18 class="org.chromium.chrome.browser.toolbar.ToolbarControlContainer$T oolbarViewResourceFrameLayout"
19 android:id="@+id/toolbar_container"
18 android:layout_width="match_parent" 20 android:layout_width="match_parent"
19 android:layout_height="@dimen/toolbar_shadow_height" 21 android:layout_height="wrap_content">
20 android:src="@drawable/toolbar_shadow" 22 <ImageView
21 android:scaleType="fitXY" 23 android:id="@+id/toolbar_shadow"
22 android:scaleY="-1" 24 android:layout_width="match_parent"
23 android:contentDescription="@null" /> 25 android:layout_height="@dimen/toolbar_shadow_height"
24 <ViewStub 26 android:src="@drawable/toolbar_shadow"
25 android:id="@+id/toolbar_stub" 27 android:scaleType="fitXY"
26 android:layout_width="match_parent" 28 android:scaleY="-1"
27 android:layout_height="@dimen/toolbar_height_no_shadow" 29 android:contentDescription="@null" />
28 android:layout_marginTop="@dimen/toolbar_shadow_height" /> 30 <ViewStub
29 <ViewStub 31 android:id="@+id/toolbar_stub"
30 android:id="@+id/find_toolbar_stub" 32 android:layout_width="match_parent"
31 android:inflatedId="@+id/find_toolbar" 33 android:layout_height="@dimen/toolbar_height_no_shadow"
32 android:layout_marginTop="@dimen/toolbar_shadow_height" 34 android:layout_marginTop="@dimen/toolbar_shadow_height" />
33 android:layout_width="match_parent" 35 <ViewStub
34 android:layout_height="@dimen/toolbar_height_no_shadow" 36 android:id="@+id/find_toolbar_stub"
35 android:layout="@layout/find_toolbar" 37 android:inflatedId="@+id/find_toolbar"
36 android:visibility="gone" /> 38 android:layout_marginTop="@dimen/toolbar_shadow_height"
37 </view> 39 android:layout_width="match_parent"
38 </org.chromium.chrome.browser.toolbar.ToolbarControlContainer> 40 android:layout_height="@dimen/toolbar_height_no_shadow"
41 android:layout="@layout/find_toolbar"
42 android:visibility="gone" />
43 </view>
44 </org.chromium.chrome.browser.toolbar.ToolbarControlContainer>
45
46 <View
47 android:id="@+id/bottom_sheet_content"
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:background="@android:color/white" />
51
52 </org.chromium.chrome.browser.widget.BottomSheet>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698