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

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

Issue 2933903002: Make the narrow version of the Android Incognito NTP follow the spec (Closed)
Patch Set: Only reflow when measurements change. Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/IncognitoNewTabPageViewMD.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2017 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 <org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD 6 <org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:id="@+id/ntp_content" 9 android:id="@+id/ntp_content"
10 android:layout_width="match_parent" 10 android:layout_width="match_parent"
11 android:layout_height="match_parent" 11 android:layout_height="match_parent"
12 android:paddingTop="@dimen/tab_strip_height" > 12 android:paddingTop="@dimen/tab_strip_height" >
13 13
14 <org.chromium.chrome.browser.ntp.NewTabPageScrollView 14 <org.chromium.chrome.browser.ntp.NewTabPageScrollView
15 android:id="@+id/ntp_scrollview" 15 android:id="@+id/ntp_scrollview"
16 android:background="@color/ntp_bg_incognito" 16 android:background="@color/ntp_bg_incognito"
17 android:layout_width="match_parent" 17 android:layout_width="match_parent"
18 android:layout_height="match_parent" 18 android:layout_height="match_parent"
19 android:paddingTop="@dimen/toolbar_height_no_shadow" 19 android:paddingTop="@dimen/toolbar_height_no_shadow"
20 android:fadingEdgeLength="9dp" 20 android:fadingEdgeLength="9dp"
21 android:fillViewport="false" 21 android:fillViewport="false"
22 android:focusable="true" 22 android:focusable="true"
23 android:focusableInTouchMode="true" 23 android:focusableInTouchMode="true"
24 android:requiresFadingEdge="vertical" 24 android:requiresFadingEdge="vertical"
25 android:contentDescription="@string/accessibility_new_incognito_tab_page " > 25 android:contentDescription="@string/accessibility_new_incognito_tab_page " >
26 26
27 <LinearLayout 27 <LinearLayout
28 android:id="@+id/new_tab_incognito_container"
28 android:layout_width="match_parent" 29 android:layout_width="match_parent"
29 android:layout_height="wrap_content" 30 android:layout_height="wrap_content"
30 android:gravity="center_horizontal" 31 android:gravity="start"
31 android:orientation="vertical" 32 android:orientation="vertical">
32 android:paddingStart="32dp"
33 android:paddingEnd="32dp"
34 android:paddingTop="24dp"
35 android:paddingBottom="16dp" >
36 33
37 <ImageView 34 <ImageView
35 android:id="@+id/new_tab_incognito_icon"
38 android:layout_width="wrap_content" 36 android:layout_width="wrap_content"
39 android:layout_height="wrap_content" 37 android:layout_height="wrap_content"
40 android:layout_marginBottom="19dp"
41 android:contentDescription="@null" 38 android:contentDescription="@null"
42 android:src="@drawable/incognito_splash"/> 39 android:src="@drawable/incognito_splash" />
43 40
44 <TextView 41 <TextView
42 android:id="@+id/new_tab_incognito_title"
45 android:layout_width="wrap_content" 43 android:layout_width="wrap_content"
46 android:layout_height="wrap_content" 44 android:layout_height="wrap_content"
47 android:fontFamily="sans-serif-light" 45 android:fontFamily="sans-serif-light"
48 android:text="@string/new_tab_incognito_header" 46 android:text="@string/new_tab_otr_title"
47 android:textColor="@color/incognito_header" />
48
49 <TextView
50 android:id="@+id/new_tab_incognito_subtitle"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:fontFamily="sans-serif-light"
54 android:text="@string/new_tab_otr_subtitle"
49 android:textColor="@color/incognito_header" 55 android:textColor="@color/incognito_header"
50 android:textSize="24sp" /> 56 android:lineSpacingExtra="6sp" />
51 57
52 <TextView 58 <TextView
53 android:id="@+id/new_tab_incognito_features" 59 android:id="@+id/new_tab_incognito_features"
54 android:layout_width="wrap_content" 60 android:layout_width="match_parent"
55 android:layout_height="wrap_content" 61 android:layout_height="wrap_content"
56 android:layout_marginTop="32dp"
57 android:layout_marginBottom="10dp"
58 android:maxWidth="660dp"
59 android:singleLine="false" 62 android:singleLine="false"
60 android:textColor="@color/incognito_text" 63 android:textColor="@color/incognito_text"
61 android:textSize="14sp" 64 android:lineSpacingExtra="6sp" />
62 android:lineSpacingMultiplier="1.2" />
63 65
64 <TextView 66 <TextView
65 android:id="@+id/new_tab_incognito_warning" 67 android:id="@+id/new_tab_incognito_warning"
66 android:layout_width="wrap_content" 68 android:layout_width="match_parent"
67 android:layout_height="wrap_content" 69 android:layout_height="wrap_content"
68 android:layout_marginTop="32dp"
69 android:layout_marginBottom="10dp"
70 android:maxWidth="660dp"
71 android:singleLine="false" 70 android:singleLine="false"
72 android:textColor="@color/incognito_text" 71 android:textColor="@color/incognito_text"
73 android:textSize="14sp" 72 android:lineSpacingExtra="6sp" />
74 android:lineSpacingMultiplier="1.2" />
75 73
76 <TextView 74 <TextView
77 android:id="@+id/learn_more" 75 android:id="@+id/learn_more"
78 android:layout_width="wrap_content" 76 android:layout_width="wrap_content"
79 android:layout_height="wrap_content" 77 android:layout_height="wrap_content"
80 android:background="?attr/listChoiceBackgroundIndicator" 78 android:background="?attr/listChoiceBackgroundIndicator"
81 android:clickable="true" 79 android:clickable="true"
82 android:focusable="true" 80 android:focusable="true"
83 android:fontFamily="sans-serif-medium" 81 android:fontFamily="sans-serif-medium"
84 android:padding="16dp"
85 android:text="@string/learn_more" 82 android:text="@string/learn_more"
86 android:textAllCaps="true" 83 android:textColor="@color/google_blue_300"
87 android:textColor="#03a9f4" 84 android:lineSpacingExtra="6sp" />
88 android:textSize="14sp" />
89 85
90 </LinearLayout> 86 </LinearLayout>
91 87
92 </org.chromium.chrome.browser.ntp.NewTabPageScrollView> 88 </org.chromium.chrome.browser.ntp.NewTabPageScrollView>
93 89
94 </org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD> 90 </org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/IncognitoNewTabPageViewMD.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698