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

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

Issue 2670083002: [Download Home] Displaying offline page bundle per day (Closed)
Patch Set: Some fix 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. -->
5
6 <!-- Represents the offline pages section header in the DownloadHistoryAdapterVi ew. -->
7 <view class="org.chromium.chrome.browser.download.ui.OfflineGroupHeaderView"
8 xmlns:android="http://schemas.android.com/apk/res/android"
9 xmlns:chrome="http://schemas.android.com/apk/res-auto"
10 android:layout_width="wrap_content"
11 android:layout_height="wrap_content" >
12
13 <LinearLayout
14 android:id="@+id/layout_container"
15 android:layout_width="match_parent"
16 android:layout_height="wrap_content"
17 android:layout_marginStart="16dp"
Theresa 2017/02/03 19:53:06 This should be extracted as a style in styles.xml
shaktisahu 2017/02/04 18:57:43 Done.
18 android:layout_marginTop="16dp"
19 android:layout_marginBottom="16dp"
20 android:gravity="center_vertical"
21 android:orientation="horizontal" >
22
23 <org.chromium.chrome.browser.widget.TintedImageView
24 android:id="@+id/icon_view"
25 android:layout_width="@dimen/downloads_item_icon_size"
26 android:layout_height="@dimen/downloads_item_icon_size"
27 android:layout_marginEnd="16dp"
28 android:contentDescription="@null"
29 android:scaleType="center"
30 android:src="@drawable/ic_drive_site_white_24dp"
31 android:background="@color/light_active_color" />
32
33 <RelativeLayout
34 android:id="@+id/completed_layout"
35 android:layout_width="0dp"
36 android:layout_height="wrap_content"
37 android:layout_weight="1" >
38
39 <TextView
40 android:id="@+id/page_count_text"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_alignParentTop="true"
44 android:layout_alignParentStart="true"
45 android:paddingEnd="16dp"
46 android:singleLine="true"
47 android:textColor="@color/default_text_color"
48 android:textSize="16sp" />
49
50 <ImageView
51 android:id="@+id/expand_icon"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_alignParentTop="true"
55 android:layout_toEndOf="@+id/page_count_text"
56 android:layout_marginTop="0dp"
57 android:paddingEnd="16dp"
58 android:contentDescription="@null"
59 android:src="@drawable/ic_expanded" />
60
61 <TextView
62 android:id="@+id/description"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:layout_alignParentBottom="true"
66 android:layout_alignParentStart="true"
67 android:layout_toStartOf="@+id/filesize_view"
68 android:layout_below="@+id/page_count_text"
69 android:layout_marginEnd="16dp"
70 android:layout_marginTop="0dp"
71 android:text="@string/download_manager_offline_header_descri ption"
72 android:textAlignment="viewStart"
73 android:textColor="@color/google_grey_600"
74 android:ellipsize="start"
75 android:singleLine="true" />
76
77 <TextView
78 android:id="@+id/filesize_view"
79 android:layout_width="wrap_content"
80 android:layout_height="wrap_content"
81 android:layout_alignParentBottom="true"
82 android:layout_alignParentEnd="true"
83 android:layout_below="@+id/page_count_text"
84 android:layout_marginTop="0dp"
85 android:paddingEnd="16dp"
86 android:textAlignment="viewEnd"
87 android:textColor="@color/google_grey_600"
88 android:singleLine="true" />
89 </RelativeLayout>
90 </LinearLayout>
91 </view>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698