summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/comics_grid_row.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/comics_grid_row.xml')
-rwxr-xr-xapp/src/main/res/layout/comics_grid_row.xml67
1 files changed, 67 insertions, 0 deletions
diff --git a/app/src/main/res/layout/comics_grid_row.xml b/app/src/main/res/layout/comics_grid_row.xml
new file mode 100755
index 0000000..10f1ed4
--- /dev/null
+++ b/app/src/main/res/layout/comics_grid_row.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.v7.widget.CardView
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/comics_list_row"
+ android:layout_width="160dp"
+ android:layout_height="210dp"
+ android:gravity="center_vertical"
+ card_view:cardUseCompatPadding="true"
+ card_view:cardElevation="2dp"
+ tools:ignore="HardcodedText" >
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="center_horizontal"
+ android:layout_weight="0"
+ android:padding="0dp" >
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="200dp"
+ android:id="@+id/thumbnail"
+ android:scaleType="centerCrop"
+ android:src="@drawable/badimage" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|center_horizontal"
+ android:gravity="center_horizontal|bottom"
+ android:background="@drawable/comic_grid_footer"
+ android:padding="4dp"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/file_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:ellipsize="middle"
+ android:singleLine="true"
+ android:text="Comic_1980.cbz"
+ android:textColor="@android:color/primary_text_dark"
+ android:textSize="11sp" />
+
+ <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"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@android:color/primary_text_dark"
+ android:layout_weight="0"
+ android:gravity="right"
+ android:text="12 of 325"
+ android:textSize="8sp" />
+ </LinearLayout>
+
+ </FrameLayout>
+ </android.support.v7.widget.CardView> \ No newline at end of file