Restore Simplified NTP launch: fix homepage align (#1407)
This commit is contained in:
@@ -8,8 +8,10 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||||
---
|
||||
chrome/android/chrome_java_resources.gni | 1 +
|
||||
chrome/android/chrome_java_sources.gni | 2 +
|
||||
.../java/res/layout/mv_tiles_container.xml | 2 +-
|
||||
.../java/res/layout/mv_tiles_layout.xml | 13 +-
|
||||
.../java/res/layout/new_tab_page_layout.xml | 7 +
|
||||
.../new_tab_page_tile_grid_placeholder.xml | 8 +-
|
||||
.../android/java/res/layout/ntp_shortcuts.xml | 65 ++++++
|
||||
chrome/android/java/res/values/attrs.xml | 4 +
|
||||
chrome/android/java/res/values/dimens.xml | 2 +
|
||||
@@ -30,7 +32,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
||||
.../Restore-Simplified-NTP-launch.inc | 12 ++
|
||||
.../Restore-Simplified-NTP-launch.inc | 5 +
|
||||
.../Restore-Simplified-NTP-launch.inc | 1 +
|
||||
24 files changed, 394 insertions(+), 29 deletions(-)
|
||||
26 files changed, 399 insertions(+), 34 deletions(-)
|
||||
create mode 100644 chrome/android/java/res/layout/ntp_shortcuts.xml
|
||||
create mode 100644 chrome/android/java/src/org/chromium/chrome/browser/feedback/SimplifiedNtpFeedbackSource.java
|
||||
create mode 100644 chrome/android/java/src/org/chromium/chrome/browser/suggestions/tile/MostVisitedTilesGridLayout.java
|
||||
@@ -68,6 +70,18 @@ diff --git a/chrome/android/chrome_java_sources.gni b/chrome/android/chrome_java
|
||||
"java/src/org/chromium/chrome/browser/suggestions/tile/MostVisitedTilesMediator.java",
|
||||
"java/src/org/chromium/chrome/browser/suggestions/tile/MostVisitedTilesProperties.java",
|
||||
"java/src/org/chromium/chrome/browser/suggestions/tile/MostVisitedTilesViewBinder.java",
|
||||
diff --git a/chrome/android/java/res/layout/mv_tiles_container.xml b/chrome/android/java/res/layout/mv_tiles_container.xml
|
||||
--- a/chrome/android/java/res/layout/mv_tiles_container.xml
|
||||
+++ b/chrome/android/java/res/layout/mv_tiles_container.xml
|
||||
@@ -31,7 +31,7 @@ found in the LICENSE file.
|
||||
<!-- Site suggestion tile grid placeholder -->
|
||||
<ViewStub
|
||||
android:id="@+id/mv_tiles_placeholder_stub"
|
||||
- android:layout_width="wrap_content"
|
||||
+ android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inflatedId="@+id/tile_grid_placeholder"
|
||||
android:layout="@layout/new_tab_page_tile_grid_placeholder" />
|
||||
diff --git a/chrome/android/java/res/layout/mv_tiles_layout.xml b/chrome/android/java/res/layout/mv_tiles_layout.xml
|
||||
--- a/chrome/android/java/res/layout/mv_tiles_layout.xml
|
||||
+++ b/chrome/android/java/res/layout/mv_tiles_layout.xml
|
||||
@@ -107,6 +121,41 @@ diff --git a/chrome/android/java/res/layout/new_tab_page_layout.xml b/chrome/and
|
||||
<!-- Middle spacer -->
|
||||
<View
|
||||
android:id="@+id/ntp_middle_spacer"
|
||||
diff --git a/chrome/android/java/res/layout/new_tab_page_tile_grid_placeholder.xml b/chrome/android/java/res/layout/new_tab_page_tile_grid_placeholder.xml
|
||||
--- a/chrome/android/java/res/layout/new_tab_page_tile_grid_placeholder.xml
|
||||
+++ b/chrome/android/java/res/layout/new_tab_page_tile_grid_placeholder.xml
|
||||
@@ -17,14 +17,14 @@ found in the LICENSE file.
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
- android:layout_width="wrap_content"
|
||||
+ android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="15dp"
|
||||
tools:ignore="ContentDescription"
|
||||
android:src="@drawable/ic_most_visited_placeholder" />
|
||||
|
||||
<TextView
|
||||
- android:layout_width="wrap_content"
|
||||
+ android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:color="#c8c8c8"
|
||||
@@ -33,11 +33,11 @@ found in the LICENSE file.
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
- android:layout_width="wrap_content"
|
||||
+ android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:color="#c8c8c8"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/most_visited_placeholder_summary"
|
||||
android:textSize="12sp" />
|
||||
|
||||
-</LinearLayout>
|
||||
\ No newline at end of file
|
||||
+</LinearLayout>
|
||||
diff --git a/chrome/android/java/res/layout/ntp_shortcuts.xml b/chrome/android/java/res/layout/ntp_shortcuts.xml
|
||||
new file mode 100644
|
||||
--- /dev/null
|
||||
|
||||
Reference in New Issue
Block a user