summaryrefslogtreecommitdiff
path: root/org.fox.ttcomics/src/main/res/layout/comics_grid_row.xml
blob: d030731c72d2e2792672c334a080d1ccadf664d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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:layout_margin="4dp"
            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="@android:color/black"
            android:padding="4dp"
            android:alpha="0.7"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/file_name"
                android:textStyle="bold"
                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="12sp" />

            <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="12sp" />
        </LinearLayout>

        <FrameLayout
            android:background="@android:color/transparent"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <ImageView
                android:paddingTop="8dp"
                android:paddingRight="8dp"
                android:layout_gravity="top|right"
                android:src="@drawable/ic_dots_circle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:id="@+id/overflow"
                android:background="@drawable/ripple" />
        </FrameLayout>

    </FrameLayout>
    </android.support.v7.widget.CardView>