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

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

Issue 2714723002: Add feature for condensed NTP tiles. (Closed)
Patch Set: Cleanups. Created 3 years, 10 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 | « chrome/android/java/res/layout/new_tab_page_layout.xml ('k') | chrome/android/java/res/values/dimens.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/tile_view.xml
diff --git a/chrome/android/java/res/layout/tile_view.xml b/chrome/android/java/res/layout/tile_view.xml
index f820e8f8d70af39bec875a7dd4e6c86a1162fb6c..2dbcc1104c4d7b5c3a41a7c413084115ccf1565c 100644
--- a/chrome/android/java/res/layout/tile_view.xml
+++ b/chrome/android/java/res/layout/tile_view.xml
@@ -12,39 +12,42 @@
android:paddingStart="4dp"
android:paddingEnd="4dp" >
+ <!-- The main icon. -->
<ImageView
android:id="@+id/tile_view_icon"
android:layout_width="@dimen/tile_view_icon_size"
android:layout_height="@dimen/tile_view_icon_size"
- android:layout_marginStart="12dp"
- android:layout_marginEnd="12dp"
- android:layout_marginTop="12dp"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="@dimen/tile_view_icon_margin_top"
android:contentDescription="@null" />
+ <!-- The offline badge. -->
<org.chromium.chrome.browser.widget.TintedImageView
android:id="@+id/offline_badge"
android:layout_width="@dimen/tile_view_offline_badge_size"
android:layout_height="@dimen/tile_view_offline_badge_size"
- android:layout_marginStart="48dp"
+ android:layout_gravity="top|end"
android:visibility="gone"
android:background="@drawable/offline_badge_background"
android:contentDescription="@string/accessibility_ntp_offline_badge"
chrome:tint="@color/tile_view_offline_badge_tint"
android:src="@drawable/offline_pin_round" />
+ <!-- The touch highlight. -->
<View
+ android:id="@+id/tile_view_highlight"
android:layout_width="@dimen/tile_view_icon_size"
android:layout_height="@dimen/tile_view_icon_size"
- android:layout_marginStart="12dp"
- android:layout_marginEnd="12dp"
- android:layout_marginTop="12dp"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginTop="@dimen/tile_view_icon_margin_top"
android:background="@drawable/tile_view_highlight" />
+ <!-- The title. -->
<TextView
android:id="@+id/tile_view_title"
- android:layout_width="72dp"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="66dp"
+ android:layout_marginTop="@dimen/tile_view_title_margin_top"
android:ellipsize="end"
android:gravity="center_horizontal"
android:lines="2"
« no previous file with comments | « chrome/android/java/res/layout/new_tab_page_layout.xml ('k') | chrome/android/java/res/values/dimens.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698