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_topic">
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_topic_listitem_name"
26
                style="@style/textview_topic_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_topic_listitem_name"
40
                style="@style/textview_topic_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_topic_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_topic_listitem_name"
63
                tools:srcCompat="@tools:sample/avatars" />
64
 
65
        </androidx.constraintlayout.widget.ConstraintLayout>
66
 
67
 
68
 
69
        <androidx.constraintlayout.widget.ConstraintLayout
70
 
71
            android:layout_width="match_parent"
72
            android:layout_height="wrap_content"
73
            android:background="@drawable/cardview_footer_topic"
74
            android:minHeight="20dp"
75
            app:layout_constraintBottom_toBottomOf="parent"
76
            app:layout_constraintEnd_toEndOf="parent" >
77
 
78
            <!--
79
            style="?android:attr/progressBarStyleHorizontal"
80
            -->
81
            <ProgressBar
82
                android:id="@+id/fragment_topic_listitem_progressbar"
83
 
84
                style="@style/topic_custom_progress_bar_horizontal"
85
                android:layout_width="0dp"
86
                android:layout_height="wrap_content"
87
                android:layout_marginLeft="16dp"
88
                android:max="100"
89
                android:progress="50"
90
                android:progressBackgroundTint="@color/backgroundTopicProgressBar"
91
                android:progressTint="@color/foregroundTopicProgressBar"
92
                app:layout_constraintBottom_toBottomOf="parent"
93
 
94
                app:layout_constraintLeft_toLeftOf="parent"
95
                app:layout_constraintTop_toTopOf="parent"
96
                app:layout_constraintWidth_percent="0.5" />
97
 
98
            <TextView
99
                android:id="@+id/fragment_topic_listitem_progress"
100
                style="@style/textview_topic_progress"
101
                android:layout_width="0dp"
102
                android:layout_height="wrap_content"
103
                android:text="50 %"
104
                android:textAlignment="center"
105
                app:layout_constraintBottom_toBottomOf="parent"
106
                app:layout_constraintLeft_toRightOf="@id/fragment_topic_listitem_progressbar"
107
                app:layout_constraintRight_toRightOf="parent"
108
                app:layout_constraintTop_toTopOf="parent"
109
                app:layout_constraintWidth_percent="0.5" />
110
 
111
        </androidx.constraintlayout.widget.ConstraintLayout>
112
 
113
 
114
    </androidx.constraintlayout.widget.ConstraintLayout>
115
 
116
 
117
 
118
</LinearLayout>