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

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

Issue 2902013002: Implement a sketch of the new MD Incognito NTP on Android (Closed)
Patch Set: Addressed first coments. Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/android/java/res/values/colors.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/new_tab_page_incognito_md.xml
diff --git a/chrome/android/java/res/layout/new_tab_page_incognito_md.xml b/chrome/android/java/res/layout/new_tab_page_incognito_md.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e2d9b726ef3c5564739dd8765073867c2e96cc31
--- /dev/null
+++ b/chrome/android/java/res/layout/new_tab_page_incognito_md.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2017 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/ntp_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="@dimen/tab_strip_height" >
+
+ <org.chromium.chrome.browser.ntp.NewTabPageScrollView
+ android:id="@+id/ntp_scrollview"
+ android:background="@color/ntp_bg_incognito"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="@dimen/toolbar_height_no_shadow"
+ android:fadingEdgeLength="9dp"
+ android:fillViewport="false"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:requiresFadingEdge="vertical"
+ android:contentDescription="@string/accessibility_new_incognito_tab_page" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:orientation="vertical"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:paddingTop="24dp"
+ android:paddingBottom="16dp" >
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="19dp"
+ android:contentDescription="@null"
+ android:src="@drawable/incognito_splash"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:fontFamily="sans-serif-light"
+ android:text="@string/new_tab_incognito_header"
+ android:textColor="@color/incognito_header"
+ android:textSize="24sp" />
+
+ <TextView
+ android:id="@+id/new_tab_incognito_features"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginBottom="10dp"
+ android:maxWidth="660dp"
+ android:singleLine="false"
+ android:textColor="@color/incognito_text"
+ android:textSize="14sp"
+ android:lineSpacingMultiplier="1.2" />
+
+ <TextView
+ android:id="@+id/new_tab_incognito_warning"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginBottom="10dp"
+ android:maxWidth="660dp"
+ android:singleLine="false"
+ android:textColor="@color/incognito_text"
+ android:textSize="14sp"
+ android:lineSpacingMultiplier="1.2" />
+
+ <TextView
+ android:id="@+id/learn_more"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="?attr/listChoiceBackgroundIndicator"
+ android:clickable="true"
+ android:focusable="true"
+ android:fontFamily="sans-serif-medium"
+ android:padding="16dp"
+ android:text="@string/learn_more"
+ android:textAllCaps="true"
+ android:textColor="#03a9f4"
+ android:textSize="14sp" />
+
+ </LinearLayout>
+
+ </org.chromium.chrome.browser.ntp.NewTabPageScrollView>
+
+</org.chromium.chrome.browser.ntp.IncognitoNewTabPageViewMD>
« no previous file with comments | « no previous file | chrome/android/java/res/values/colors.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698