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

Issue 2963523002: Additional improvements of the new Incognito NTP (Closed)

Created:
3 years, 5 months ago by msramek
Modified:
3 years, 5 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Additional improvements of the new Incognito NTP Changes in this CL: 1. Remove the lighter font from the title and subtitle (this is a leftover from the previous NTP). 2. Remove the trailing newline after the third bulletpoint. This made the bottom margin artificially larger. 3. Move the layout code from the onMeasure() to the onLayout() phase where it semantically belongs. Additionally, call setLayoutParams() after changing LayoutParams of a View (otherwise the change would not be registered). 4. If the screen is wide and the two sets of bulletpoints together are not too wide, arrange them next to each other by wrapping them in a linear layout. 5. If the bulletpoints are arranged next to each other, make the subtitle width equal to them. NOTE: The first layout pass calculates the width incorrectly by 10dp. I am still not sure why, so this is fixed in a hacky way for now. 6. Remove the ternary rule for padding-bottom (32/48/72 dp) in favor of a simpler binary one (32/72 dp) after feedback from the UX. 7. Resolve the TODO about the icon size (fortunately, it's a no-op). BUG=693525 Review-Url: https://codereview.chromium.org/2963523002 Cr-Commit-Position: refs/heads/master@{#483694} Committed: https://chromium.googlesource.com/chromium/src/+/c65e5b86d2530a035bf17612b2e12109c942d878

Patch Set 1 #

Patch Set 2 : Typo #

Patch Set 3 : Rebase. #

Total comments: 4

Patch Set 4 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -44 lines) Patch
M chrome/android/java/res/layout/new_tab_page_incognito_md.xml View 1 2 3 1 chunk +21 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/IncognitoNewTabPageViewMD.java View 1 2 3 7 chunks +81 lines, -28 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (16 generated)
msramek
Hi Michael, Can you please have a look? This is another iteration of the new ...
3 years, 5 months ago (2017-06-27 13:19:57 UTC) #5
Michael van Ouwerkerk
lgtm with nits https://codereview.chromium.org/2963523002/diff/40001/chrome/android/java/res/layout/new_tab_page_incognito_md.xml File chrome/android/java/res/layout/new_tab_page_incognito_md.xml (right): https://codereview.chromium.org/2963523002/diff/40001/chrome/android/java/res/layout/new_tab_page_incognito_md.xml#newcode54 chrome/android/java/res/layout/new_tab_page_incognito_md.xml:54: android:singleLine="false" Here and below: the default ...
3 years, 5 months ago (2017-06-30 10:30:39 UTC) #14
msramek
Thank you! https://codereview.chromium.org/2963523002/diff/40001/chrome/android/java/res/layout/new_tab_page_incognito_md.xml File chrome/android/java/res/layout/new_tab_page_incognito_md.xml (right): https://codereview.chromium.org/2963523002/diff/40001/chrome/android/java/res/layout/new_tab_page_incognito_md.xml#newcode54 chrome/android/java/res/layout/new_tab_page_incognito_md.xml:54: android:singleLine="false" On 2017/06/30 10:30:39, Michael van Ouwerkerk ...
3 years, 5 months ago (2017-06-30 13:27:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2963523002/60001
3 years, 5 months ago (2017-06-30 13:27:42 UTC) #18
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 14:20:31 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c65e5b86d2530a035bf17612b2e1...

Powered by Google App Engine
This is Rietveld 408576698