summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/downloadlist_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/downloadlist_item.xml')
-rw-r--r--app/src/main/res/layout/downloadlist_item.xml25
1 files changed, 18 insertions, 7 deletions
diff --git a/app/src/main/res/layout/downloadlist_item.xml b/app/src/main/res/layout/downloadlist_item.xml
index df6ebf762..e7694502b 100644
--- a/app/src/main/res/layout/downloadlist_item.xml
+++ b/app/src/main/res/layout/downloadlist_item.xml
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="@dimen/listitem_threeline_height"
- android:orientation="horizontal">
+ android:orientation="horizontal"
+ tools:background="@android:color/darker_gray">
<LinearLayout
android:layout_width="0dp"
@@ -19,7 +21,9 @@
android:ellipsize="end"
android:lines="1"
android:textColor="?android:attr/textColorPrimary"
- android:textSize="16sp" />
+ android:textSize="16sp"
+ tools:text="Download item title"
+ tools:background="@android:color/holo_green_dark" />
<ProgressBar
android:id="@+id/progProgress"
@@ -29,7 +33,8 @@
android:layout_marginBottom="4dp"
android:layout_marginLeft="@dimen/listitem_threeline_horizontalpadding"
android:layout_marginRight="@dimen/listitem_threeline_horizontalpadding"
- android:layout_marginTop="4dp" />
+ android:layout_marginTop="4dp"
+ tools:background="@android:color/holo_blue_light" />
<RelativeLayout
android:layout_width="match_parent"
@@ -46,7 +51,9 @@
android:ellipsize="end"
android:lines="1"
android:textColor="?android:attr/textColorPrimary"
- android:textSize="@dimen/text_size_small" />
+ android:textSize="@dimen/text_size_small"
+ tools:text="21 MB / 42 MB"
+ tools:background="@android:color/holo_green_dark" />
<TextView
android:id="@+id/txtvPercent"
@@ -56,7 +63,9 @@
android:ellipsize="end"
android:lines="1"
android:textColor="?android:attr/textColorPrimary"
- android:textSize="@dimen/text_size_small" />
+ android:textSize="@dimen/text_size_small"
+ tools:text="50%"
+ tools:background="@android:color/holo_green_dark" />
</RelativeLayout>
</LinearLayout>
@@ -72,5 +81,7 @@
android:contentDescription="@string/cancel_download_label"
android:focusable="false"
android:focusableInTouchMode="false"
- android:src="?attr/navigation_cancel" />
-</LinearLayout> \ No newline at end of file
+ android:src="?attr/navigation_cancel"
+ tools:src="@drawable/ic_cancel_white_24dp"
+ tools:background="@android:color/holo_green_dark" />
+</LinearLayout>