Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 gabriel 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"
11 gabriel 7
    android:layout_marginLeft="8dp"
1 gabriel 8
    android:layout_marginTop="8dp"
11 gabriel 9
    android:layout_marginRight="8dp"
1 gabriel 10
    android:layout_marginBottom="8dp"
11 gabriel 11
    android:background="@drawable/cardview_background_topic"
12
    android:minHeight="320dp"
13
    android:padding="0dp">
1 gabriel 14
 
11 gabriel 15
    <androidx.constraintlayout.widget.ConstraintLayout
16
        android:layout_width="match_parent"
17
        android:layout_height="match_parent"
18
        android:padding="0dp">
19
 
1 gabriel 20
        <androidx.constraintlayout.widget.ConstraintLayout
21
            android:layout_width="match_parent"
11 gabriel 22
            android:layout_height="match_parent">
1 gabriel 23
 
11 gabriel 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" />
1 gabriel 36
 
11 gabriel 37
            <!--
1 gabriel 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
 
11 gabriel 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"
1 gabriel 58
 
11 gabriel 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" />
1 gabriel 64
 
11 gabriel 65
        </androidx.constraintlayout.widget.ConstraintLayout>
1 gabriel 66
 
67
 
11 gabriel 68
        <androidx.constraintlayout.widget.ConstraintLayout
1 gabriel 69
 
11 gabriel 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">
1 gabriel 76
 
11 gabriel 77
            <!--
1 gabriel 78
                 style="?android:attr/progressBarStyleHorizontal"
79
                -->
11 gabriel 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"
1 gabriel 91
 
11 gabriel 92
                app:layout_constraintLeft_toLeftOf="parent"
93
                app:layout_constraintTop_toTopOf="parent"
94
                app:layout_constraintWidth_percent="0.5" />
1 gabriel 95
 
11 gabriel 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" />
1 gabriel 108
 
11 gabriel 109
        </androidx.constraintlayout.widget.ConstraintLayout>
1 gabriel 110
 
111
 
11 gabriel 112
    </androidx.constraintlayout.widget.ConstraintLayout>
1 gabriel 113
 
114
 
115
</LinearLayout>