Proyectos de Subversion Android Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4
    xmlns:tools="http://schemas.android.com/tools"
5
    android:layout_width="match_parent"
6
    android:layout_height="wrap_content"
7
    android:minHeight="320dp"
8
    android:layout_marginTop="8dp"
9
    android:layout_marginBottom="8dp"
10
    android:layout_marginLeft="8dp"
11
    android:layout_marginRight="8dp"
12
    android:padding="0dp"
13
    android:background="@drawable/cardview_background_capsule">
14
 
15
        <androidx.constraintlayout.widget.ConstraintLayout
16
            android:layout_width="match_parent"
17
            android:layout_height="match_parent"
18
            android:padding="0dp">
19
 
20
            <androidx.constraintlayout.widget.ConstraintLayout
21
                android:layout_width="match_parent"
22
                android:layout_height="match_parent">
23
 
24
                <TextView
25
                    android:id="@+id/fragment_capsule_listitem_name"
26
                    style="@style/textview_capsule_name"
27
                    android:layout_width="0dp"
28
                    android:layout_height="wrap_content"
29
                    android:layout_marginTop="10dp"
30
                    android:text="TextView"
31
                    android:textAlignment="center"
32
                    app:layout_constraintLeft_toLeftOf="parent"
33
                    app:layout_constraintRight_toRightOf="parent"
34
                    app:layout_constraintTop_toTopOf="parent"
35
                    app:layout_constraintWidth_percent="0.9" />
36
 
37
                <!--
38
                <me.biubiubiu.justifytext.library.JustifyTextView
39
                    android:id="@+id/fragment_capsule_listitem_name"
40
                    style="@style/textview_capsule_name"
41
                    android:layout_width="0dp"
42
                    android:layout_height="wrap_content"
43
                    android:layout_marginTop="10dp"
44
                    android:text="TextView"
45
                    android:textAlignment="center"
46
                    app:layout_constraintLeft_toLeftOf="parent"
47
                    app:layout_constraintRight_toRightOf="parent"
48
                    app:layout_constraintTop_toTopOf="parent"
49
                    app:layout_constraintWidth_percent="0.9" />
50
                -->
51
 
52
                <ImageView
53
                    android:id="@+id/fragment_capsule_listitem_image"
54
                    android:layout_width="match_parent"
55
                    android:layout_height="wrap_content"
56
                    android:adjustViewBounds="true"
57
                    android:padding="10dp"
58
 
59
                    android:scaleType="fitCenter"
60
                    app:layout_constraintLeft_toLeftOf="parent"
61
                    app:layout_constraintRight_toRightOf="parent"
62
                    app:layout_constraintTop_toBottomOf="@id/fragment_capsule_listitem_name"
63
                    tools:srcCompat="@tools:sample/avatars" />
64
 
65
            </androidx.constraintlayout.widget.ConstraintLayout>
66
 
67
 
68
            <androidx.constraintlayout.widget.ConstraintLayout
69
 
70
                android:layout_width="match_parent"
71
                android:layout_height="wrap_content"
72
                android:background="@drawable/cardview_footer_capsule"
73
                android:minHeight="20dp"
74
                app:layout_constraintBottom_toBottomOf="parent"
75
                app:layout_constraintEnd_toEndOf="parent" >
76
 
77
                <!--
78
                 style="?android:attr/progressBarStyleHorizontal"
79
                -->
80
                <ProgressBar
81
                    android:id="@+id/fragment_capsule_listitem_progressbar"
82
                    style="@style/topic_custom_progress_bar_horizontal"
83
                    android:layout_width="0dp"
84
                    android:layout_height="wrap_content"
85
                    android:layout_marginLeft="16dp"
86
                    android:max="100"
87
                    android:progress="50"
88
                    android:progressBackgroundTint="@color/backgroundTopicProgressBar"
89
                    android:progressTint="@color/foregroundTopicProgressBar"
90
                    app:layout_constraintBottom_toBottomOf="parent"
91
 
92
                    app:layout_constraintLeft_toLeftOf="parent"
93
                    app:layout_constraintTop_toTopOf="parent"
94
                    app:layout_constraintWidth_percent="0.5" />
95
 
96
                <TextView
97
                    android:id="@+id/fragment_capsule_listitem_progress"
98
                    style="@style/textview_capsule_progress"
99
                    android:layout_width="0dp"
100
                    android:layout_height="wrap_content"
101
                    android:text="50 %"
102
                    android:textAlignment="center"
103
                    app:layout_constraintBottom_toBottomOf="parent"
104
                    app:layout_constraintLeft_toRightOf="@id/fragment_capsule_listitem_progressbar"
105
                    app:layout_constraintRight_toRightOf="parent"
106
                    app:layout_constraintTop_toTopOf="parent"
107
                    app:layout_constraintWidth_percent="0.5" />
108
 
109
            </androidx.constraintlayout.widget.ConstraintLayout>
110
 
111
 
112
        </androidx.constraintlayout.widget.ConstraintLayout>
113
 
114
 
115
 
116
</LinearLayout>