summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-15 13:27:34 +0400
committerAndrew Dolgov <[email protected]>2012-10-15 13:27:34 +0400
commitcf5ed38aa2476051908030fc210faede5d60567a (patch)
treed91f8b10414f02bebd209738377193374cd6e464 /res
parent65be0b20c458ad7c740cbf54ffb74b3f0c13c6c3 (diff)
use shadow on thumbnails
Diffstat (limited to 'res')
-rw-r--r--res/drawable/border.xml24
-rw-r--r--res/layout-sw600dp/comics_grid_row.xml15
-rw-r--r--res/layout-sw600dp/comics_list_row.xml56
-rw-r--r--res/layout/comics_grid_row.xml17
-rw-r--r--res/layout/comics_list_row.xml1
5 files changed, 36 insertions, 77 deletions
diff --git a/res/drawable/border.xml b/res/drawable/border.xml
index 458a70d..8f6ad03 100644
--- a/res/drawable/border.xml
+++ b/res/drawable/border.xml
@@ -1,7 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<shape xmlns:android="http://schemas.android.com/apk/res/android">
-<solid android:color="#ffffff" />
-<stroke android:width="1dp" android:color="#33b5e5" />
-<padding android:left="1dp" android:top="1dp" android:right="1dp"
- android:bottom="1dp" />
-</shape> \ No newline at end of file
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+ <item android:top="2dp" android:left="2dp">
+ <shape android:shape="rectangle" >
+ <solid android:color="#20000000"/>
+ <padding android:left="0dp" android:top="0dp" android:right="2dp"
+ android:bottom="2dp" />
+ </shape>
+ </item>
+
+ <item>
+ <shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <solid android:color="#ffffff" />
+ <stroke android:width="1dp" android:color="#33b5e5" />
+ <padding android:left="1dp" android:top="1dp" android:right="1dp"
+ android:bottom="1dp" />
+ </shape>
+ </item>
+</layer-list> \ No newline at end of file
diff --git a/res/layout-sw600dp/comics_grid_row.xml b/res/layout-sw600dp/comics_grid_row.xml
index 8a7f909..0b1a666 100644
--- a/res/layout-sw600dp/comics_grid_row.xml
+++ b/res/layout-sw600dp/comics_grid_row.xml
@@ -12,6 +12,7 @@
android:id="@+id/thumbnail"
android:layout_width="160dp"
android:layout_height="160dp"
+ android:padding="8dp"
android:layout_gravity="center_horizontal"
android:layout_weight="0"
android:background="@drawable/border"
@@ -32,6 +33,13 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Comic_1980.cbz" />
+
+ <ProgressBar
+ android:id="@+id/file_progress_bar"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="128dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" />
<TextView
android:id="@+id/file_progress_info"
@@ -42,13 +50,6 @@
android:text="12 of 325"
android:textSize="12dp" />
- <ProgressBar
- android:id="@+id/file_progress_bar"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="128dp"
- android:layout_height="wrap_content"
- android:layout_weight="1" />
-
</LinearLayout>
</LinearLayout> \ No newline at end of file
diff --git a/res/layout-sw600dp/comics_list_row.xml b/res/layout-sw600dp/comics_list_row.xml
deleted file mode 100644
index 029a972..0000000
--- a/res/layout-sw600dp/comics_list_row.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/comics_list_row"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="4dp" >
-
- <ImageView
- android:id="@+id/thumbnail"
- android:layout_width="160dp"
- android:layout_height="160dp"
- android:layout_weight="0"
- android:background="@drawable/border"
- android:scaleType="centerInside"
- android:src="@drawable/ic_launcher" />
-
- <LinearLayout
- android:id="@+id/linearLayout5"
- android:paddingLeft="4dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical" >
-
- <LinearLayout
- android:id="@+id/linearLayout4"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" >
-
- <TextView
- android:id="@+id/file_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="Comic_1980.cbz" />
-
- <TextView
- android:id="@+id/file_progress_info"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="0"
- android:gravity="right"
- android:text="12 of 325" />
- </LinearLayout>
-
- <ProgressBar
- android:id="@+id/file_progress_bar"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- </LinearLayout>
-
-</LinearLayout> \ No newline at end of file
diff --git a/res/layout/comics_grid_row.xml b/res/layout/comics_grid_row.xml
index d5a54f2..748d123 100644
--- a/res/layout/comics_grid_row.xml
+++ b/res/layout/comics_grid_row.xml
@@ -7,9 +7,10 @@
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="4dp" >
-
+
<ImageView
android:id="@+id/thumbnail"
+ android:padding="4dp"
android:layout_width="128dp"
android:layout_height="128dp"
android:layout_gravity="center_horizontal"
@@ -32,6 +33,13 @@
android:layout_weight="1"
android:text="Comic_1980.cbz"
android:textSize="11dp" />
+
+ <ProgressBar
+ android:id="@+id/file_progress_bar"
+ style="?android:attr/progressBarStyleHorizontal"
+ android:layout_width="96dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" />
<TextView
android:id="@+id/file_progress_info"
@@ -42,13 +50,6 @@
android:text="12 of 325"
android:textSize="8dp" />
- <ProgressBar
- android:id="@+id/file_progress_bar"
- style="?android:attr/progressBarStyleHorizontal"
- android:layout_width="96dp"
- android:layout_height="wrap_content"
- android:layout_weight="1" />
-
</LinearLayout>
</LinearLayout> \ No newline at end of file
diff --git a/res/layout/comics_list_row.xml b/res/layout/comics_list_row.xml
index dd4f09e..1b83d27 100644
--- a/res/layout/comics_list_row.xml
+++ b/res/layout/comics_list_row.xml
@@ -9,6 +9,7 @@
<ImageView
android:id="@+id/thumbnail"
+ android:padding="4dp"
android:layout_weight="0"
android:layout_width="48dp"
android:layout_height="48dp"