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

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

Issue 2714723002: Add feature for condensed NTP tiles. (Closed)
Patch Set: Cleanups. Created 3 years, 9 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
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 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 <!-- A site suggestion tile. --> 6 <!-- A site suggestion tile. -->
7 <org.chromium.chrome.browser.suggestions.TileView 7 <org.chromium.chrome.browser.suggestions.TileView
8 xmlns:android="http://schemas.android.com/apk/res/android" 8 xmlns:android="http://schemas.android.com/apk/res/android"
9 xmlns:chrome="http://schemas.android.com/apk/res-auto" 9 xmlns:chrome="http://schemas.android.com/apk/res-auto"
10 android:layout_width="@dimen/tile_view_width" 10 android:layout_width="@dimen/tile_view_width"
11 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
12 android:paddingStart="4dp" 12 android:paddingStart="4dp"
13 android:paddingEnd="4dp" > 13 android:paddingEnd="4dp" >
14 14
15 <!-- The main icon. -->
15 <ImageView 16 <ImageView
16 android:id="@+id/tile_view_icon" 17 android:id="@+id/tile_view_icon"
17 android:layout_width="@dimen/tile_view_icon_size" 18 android:layout_width="@dimen/tile_view_icon_size"
18 android:layout_height="@dimen/tile_view_icon_size" 19 android:layout_height="@dimen/tile_view_icon_size"
19 android:layout_marginStart="12dp" 20 android:layout_gravity="center_horizontal"
20 android:layout_marginEnd="12dp" 21 android:layout_marginTop="@dimen/tile_view_icon_margin_top"
21 android:layout_marginTop="12dp"
22 android:contentDescription="@null" /> 22 android:contentDescription="@null" />
23 23
24 <!-- The offline badge. -->
24 <org.chromium.chrome.browser.widget.TintedImageView 25 <org.chromium.chrome.browser.widget.TintedImageView
25 android:id="@+id/offline_badge" 26 android:id="@+id/offline_badge"
26 android:layout_width="@dimen/tile_view_offline_badge_size" 27 android:layout_width="@dimen/tile_view_offline_badge_size"
27 android:layout_height="@dimen/tile_view_offline_badge_size" 28 android:layout_height="@dimen/tile_view_offline_badge_size"
28 android:layout_marginStart="48dp" 29 android:layout_gravity="top|end"
29 android:visibility="gone" 30 android:visibility="gone"
30 android:background="@drawable/offline_badge_background" 31 android:background="@drawable/offline_badge_background"
31 android:contentDescription="@string/accessibility_ntp_offline_badge" 32 android:contentDescription="@string/accessibility_ntp_offline_badge"
32 chrome:tint="@color/tile_view_offline_badge_tint" 33 chrome:tint="@color/tile_view_offline_badge_tint"
33 android:src="@drawable/offline_pin_round" /> 34 android:src="@drawable/offline_pin_round" />
34 35
36 <!-- The touch highlight. -->
35 <View 37 <View
38 android:id="@+id/tile_view_highlight"
36 android:layout_width="@dimen/tile_view_icon_size" 39 android:layout_width="@dimen/tile_view_icon_size"
37 android:layout_height="@dimen/tile_view_icon_size" 40 android:layout_height="@dimen/tile_view_icon_size"
38 android:layout_marginStart="12dp" 41 android:layout_gravity="center_horizontal"
39 android:layout_marginEnd="12dp" 42 android:layout_marginTop="@dimen/tile_view_icon_margin_top"
40 android:layout_marginTop="12dp"
41 android:background="@drawable/tile_view_highlight" /> 43 android:background="@drawable/tile_view_highlight" />
42 44
45 <!-- The title. -->
43 <TextView 46 <TextView
44 android:id="@+id/tile_view_title" 47 android:id="@+id/tile_view_title"
45 android:layout_width="72dp" 48 android:layout_width="match_parent"
46 android:layout_height="wrap_content" 49 android:layout_height="wrap_content"
47 android:layout_marginTop="66dp" 50 android:layout_marginTop="@dimen/tile_view_title_margin_top"
48 android:ellipsize="end" 51 android:ellipsize="end"
49 android:gravity="center_horizontal" 52 android:gravity="center_horizontal"
50 android:lines="2" 53 android:lines="2"
51 android:lineSpacingMultiplier="1.17" 54 android:lineSpacingMultiplier="1.17"
52 android:textColor="@color/tile_view_text" 55 android:textColor="@color/tile_view_text"
53 android:textSize="12sp" /> 56 android:textSize="12sp" />
54 57
55 </org.chromium.chrome.browser.suggestions.TileView> 58 </org.chromium.chrome.browser.suggestions.TileView>
OLDNEW
« 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