Proyectos de Subversion Android Microlearning - Nuevo Interface

Rev

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

Rev Autor Línea Nro. Línea
5 gabriel 1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout 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:clickable="true"
5 gabriel 8
    android:focusable="true"
9
    android:orientation="horizontal"
10
    android:visibility="visible">
11
 
12
    <!-- A CardView that contains a TextView -->
13
    <androidx.cardview.widget.CardView
71 efrain 14
        android:id="@+id/fragment_my_capsules_item"
5 gabriel 15
        android:layout_width="0dp"
16
        android:layout_height="wrap_content"
17
        android:layout_gravity="center"
11 gabriel 18
        android:clickable="true"
5 gabriel 19
        app:cardBackgroundColor="@color/white"
20
        app:cardUseCompatPadding="true"
21
        app:layout_constraintBottom_toBottomOf="parent"
22
        app:layout_constraintEnd_toEndOf="parent"
23
        app:layout_constraintStart_toStartOf="parent"
24
        app:layout_constraintTop_toTopOf="parent">
25
 
26
        <androidx.constraintlayout.widget.ConstraintLayout
8 gabriel 27
            android:layout_width="match_parent"
28
            android:layout_height="match_parent"
5 gabriel 29
            android:paddingStart="10dp"
30
            android:paddingTop="20dp"
31
            android:paddingEnd="10dp"
32
            android:paddingBottom="20dp">
33
 
34
            <TextView
71 efrain 35
                android:id="@+id/fragment_my_capsules_item_textview_title"
11 gabriel 36
                android:layout_width="0dp"
12 gabriel 37
                android:layout_height="wrap_content"
5 gabriel 38
                android:layout_marginStart="8dp"
39
                android:layout_marginTop="4dp"
40
                android:fontFamily="sans-serif-medium"
41
                android:textAlignment="viewStart"
42
                android:textColor="@color/colorTextColor"
43
                android:textSize="16sp"
44
                android:textStyle="bold"
12 gabriel 45
                app:layout_constraintBottom_toBottomOf="parent"
46
                app:layout_constraintHorizontal_bias="0.0"
8 gabriel 47
                app:layout_constraintStart_toEndOf="@+id/cardView2"
5 gabriel 48
                app:layout_constraintTop_toTopOf="parent"
12 gabriel 49
                app:layout_constraintVertical_bias="0.0"
5 gabriel 50
                tools:text="Titulo de capsula" />
51
 
71 efrain 52
            <!--
53
app:layout_constraintEnd_toStartOf="@+id/fragment_my_capsules_item_button"
54
-->
55
 
5 gabriel 56
            <TextView
71 efrain 57
                android:id="@+id/fragment_my_capsules_item_textview_slides"
12 gabriel 58
                android:layout_width="0dp"
59
                android:layout_height="wrap_content"
60
                android:layout_marginStart="8dp"
61
                android:textColor="@color/colorTextColor"
62
                android:textStyle="italic"
71 efrain 63
                app:layout_constraintBottom_toTopOf="@+id/fragment_my_capsules_item_textview_progress"
12 gabriel 64
                app:layout_constraintEnd_toEndOf="parent"
65
                app:layout_constraintStart_toEndOf="@+id/cardView2"
71 efrain 66
                app:layout_constraintTop_toBottomOf="@+id/fragment_my_capsules_item_textview_title"
67
                tools:text="15/20 diapositivas" />
12 gabriel 68
 
69
            <TextView
71 efrain 70
                android:id="@+id/fragment_my_capsules_item_textview_progress"
11 gabriel 71
                android:layout_width="0dp"
5 gabriel 72
                android:layout_height="wrap_content"
11 gabriel 73
                android:layout_marginStart="8dp"
5 gabriel 74
                android:fontFamily="sans-serif"
75
                android:textColor="@color/colorTextColor"
76
                android:textSize="14sp"
8 gabriel 77
                app:layout_constraintBottom_toBottomOf="parent"
5 gabriel 78
                app:layout_constraintEnd_toEndOf="parent"
12 gabriel 79
                app:layout_constraintHorizontal_bias="0.0"
8 gabriel 80
                app:layout_constraintStart_toEndOf="@+id/cardView2"
71 efrain 81
                app:layout_constraintTop_toBottomOf="@+id/fragment_my_capsules_item_textview_title"
12 gabriel 82
                app:layout_constraintVertical_bias="0.666"
71 efrain 83
                tools:text="75%" />
5 gabriel 84
 
8 gabriel 85
            <androidx.cardview.widget.CardView
86
                android:id="@+id/cardView2"
87
                android:layout_width="70dp"
88
                android:layout_height="85dp"
89
                android:layout_marginStart="8dp"
90
                app:cardCornerRadius="8dp"
5 gabriel 91
                app:layout_constraintBottom_toBottomOf="parent"
92
                app:layout_constraintStart_toStartOf="parent"
8 gabriel 93
                app:layout_constraintTop_toTopOf="parent">
5 gabriel 94
 
8 gabriel 95
                <ImageView
71 efrain 96
                    android:id="@+id/fragment_my_capsules_item_imageview"
8 gabriel 97
                    android:layout_width="fill_parent"
98
                    android:layout_height="fill_parent"
99
                    tools:visibility="gone" />
100
            </androidx.cardview.widget.CardView>
101
 
71 efrain 102
            <!--
5 gabriel 103
            <Button
71 efrain 104
                android:id="@+id/fragment_my_capsules_item_button"
8 gabriel 105
                android:layout_width="25dp"
106
                android:layout_height="25dp"
107
                android:background="@drawable/topics"
108
                android:backgroundTint="@color/black"
5 gabriel 109
                android:fontFamily="@font/roboto"
110
                android:textColor="@color/colorPrimary"
23 gabriel 111
                android:visibility="gone"
8 gabriel 112
                app:layout_constraintBottom_toBottomOf="parent"
5 gabriel 113
                app:layout_constraintEnd_toEndOf="parent"
8 gabriel 114
                app:layout_constraintTop_toTopOf="parent"
115
                app:layout_constraintVertical_bias="0.16" />
71 efrain 116
                -->
5 gabriel 117
        </androidx.constraintlayout.widget.ConstraintLayout>
118
 
119
    </androidx.cardview.widget.CardView>
120
</androidx.constraintlayout.widget.ConstraintLayout>