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

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

Issue 2586643002: [Downloads] Add a horizontal material-styled ProgressBar (Closed)
Patch Set: Created 4 years 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 2016 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2016 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 <!-- Represents a single item in the DownloadHistoryAdapterView. --> 6 <!-- Represents a single item in the DownloadHistoryAdapterView. -->
7 <view class="org.chromium.chrome.browser.download.ui.DownloadItemView" 7 <view class="org.chromium.chrome.browser.download.ui.DownloadItemView"
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="wrap_content" 10 android:layout_width="wrap_content"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 android:id="@+id/filename_progress_view" 89 android:id="@+id/filename_progress_view"
90 android:layout_width="wrap_content" 90 android:layout_width="wrap_content"
91 android:layout_height="18dp" 91 android:layout_height="18dp"
92 android:layout_alignParentTop="true" 92 android:layout_alignParentTop="true"
93 android:layout_alignParentStart="true" 93 android:layout_alignParentStart="true"
94 android:layout_toStartOf="@+id/pause_button" 94 android:layout_toStartOf="@+id/pause_button"
95 android:singleLine="true" 95 android:singleLine="true"
96 android:textColor="@color/default_text_color" 96 android:textColor="@color/default_text_color"
97 android:textSize="14sp" /> 97 android:textSize="14sp" />
98 98
99 <ProgressBar 99 <org.chromium.chrome.browser.widget.MaterialProgressBar
100 android:id="@+id/download_progress_view" 100 android:id="@+id/download_progress_view"
101 style="@style/DownloadProgressBar"
102 android:layout_width="wrap_content" 101 android:layout_width="wrap_content"
103 android:layout_height="2dp" 102 android:layout_height="2dp"
104 android:layout_marginTop="5dp" 103 android:layout_marginTop="5dp"
105 android:layout_marginBottom="5dp" 104 android:layout_marginBottom="5dp"
106 android:layout_below="@+id/filename_progress_view" 105 android:layout_below="@+id/filename_progress_view"
107 android:layout_alignParentStart="true" 106 android:layout_alignParentStart="true"
108 android:layout_toStartOf="@+id/pause_button" /> 107 android:layout_toStartOf="@+id/pause_button"
108 chrome:colorBackground="@color/google_grey_400"
109 chrome:colorProgress="@color/light_active_color"
110 chrome:colorSecondaryProgress="@color/google_grey_600" />
109 111
110 <TextView 112 <TextView
111 android:id="@+id/status_view" 113 android:id="@+id/status_view"
112 android:layout_width="wrap_content" 114 android:layout_width="wrap_content"
113 android:layout_height="18dp" 115 android:layout_height="18dp"
114 android:layout_marginEnd="16dp" 116 android:layout_marginEnd="16dp"
115 android:layout_marginTop="0dp" 117 android:layout_marginTop="0dp"
116 android:layout_alignParentBottom="true" 118 android:layout_alignParentBottom="true"
117 android:layout_alignParentStart="true" 119 android:layout_alignParentStart="true"
118 android:layout_toStartOf="@+id/pause_button" 120 android:layout_toStartOf="@+id/pause_button"
(...skipping 26 matching lines...) Expand all
145 android:layout_alignParentBottom="true" 147 android:layout_alignParentBottom="true"
146 android:layout_alignParentEnd="true" 148 android:layout_alignParentEnd="true"
147 android:padding="8dp" 149 android:padding="8dp"
148 android:background="?attr/selectableItemBackground" 150 android:background="?attr/selectableItemBackground"
149 android:contentDescription="@string/download_notification_ca ncel_button" 151 android:contentDescription="@string/download_notification_ca ncel_button"
150 android:src="@drawable/btn_close" 152 android:src="@drawable/btn_close"
151 chrome:tint="@color/google_grey_600" /> 153 chrome:tint="@color/google_grey_600" />
152 </RelativeLayout> 154 </RelativeLayout>
153 </LinearLayout> 155 </LinearLayout>
154 </view> 156 </view>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698