Proyectos de Subversion Android Microlearning

Rev

Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.drawerlayout.widget.DrawerLayout 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:id="@+id/drawer_layout"
6
    android:layout_width="match_parent"
7
    android:layout_height="match_parent"
8
    android:fitsSystemWindows="true"
9
    android:background="@color/backgroundTopicFooter"
10
    tools:openDrawer="start">
11
 
12
 
13
    <LinearLayout
14
        android:id="@+id/home_content"
15
        android:layout_width="match_parent"
16
        android:layout_height="match_parent"
17
        android:orientation="vertical">
18
 
19
        <com.google.android.material.appbar.MaterialToolbar
20
            android:id="@+id/toolbar"
21
            android:layout_width="match_parent"
22
            android:layout_height="?attr/actionBarSize" />
23
 
24
 
25
        <androidx.constraintlayout.widget.ConstraintLayout
26
            xmlns:android="http://schemas.android.com/apk/res/android"
27
            xmlns:app="http://schemas.android.com/apk/res-auto"
28
            xmlns:tools="http://schemas.android.com/tools"
29
            android:orientation="vertical"
30
            android:layout_width="match_parent"
31
            android:layout_height="match_parent">
32
 
33
            <FrameLayout
34
                android:id="@+id/fragment_container"
35
                android:layout_width="match_parent"
36
                android:layout_height="match_parent"
37
                app:layout_constraintBottom_toBottomOf="parent"
38
                app:layout_constraintEnd_toEndOf="parent"
39
                app:layout_constraintStart_toStartOf="parent"
40
                app:layout_constraintTop_toTopOf="parent"/>
41
 
42
            <ProgressBar
43
                android:id="@+id/progressBar"
44
                style="?android:attr/progressBarStyleLarge"
45
                android:layout_width="wrap_content"
46
                android:layout_height="wrap_content"
47
                app:layout_constraintBottom_toBottomOf="parent"
48
                app:layout_constraintLeft_toLeftOf="parent"
49
                app:layout_constraintRight_toRightOf="parent"
50
                app:layout_constraintTop_toTopOf="parent"
51
                android:max="100"
52
                android:progress="0"
53
                android:visibility="invisible"/>
54
 
55
            <TextView
56
                android:id="@+id/main_activity_text_view_message_not_connection"
57
                android:layout_width="match_parent"
58
                android:layout_height="wrap_content"
59
                android:text="@string/error_need_active_data_connection"
60
                android:background="@drawable/message_not_connection"
61
                android:textSize="18dp"
62
                android:textColor="@color/white"
63
                android:visibility="invisible"
64
                app:layout_constraintBottom_toBottomOf="parent"
65
                app:layout_constraintLeft_toLeftOf="parent"
66
                app:layout_constraintRight_toRightOf="parent"/>
67
 
68
 
69
 
70
 
71
        </androidx.constraintlayout.widget.ConstraintLayout>
72
 
73
 
74
    </LinearLayout>
75
 
76
        <!--
77
    <LinearLayout
78
        android:id="@+id/home_content"
79
        android:layout_width="match_parent"
80
        android:layout_height="match_parent"
81
        android:orientation="vertical">
82
 
83
        <com.google.android.material.appbar.MaterialToolbar
84
            android:id="@+id/toolbar"
85
            android:layout_width="match_parent"
86
            android:layout_height="?attr/actionBarSize" />
87
 
88
        <FrameLayout
89
            android:id="@+id/fragment_container"
90
            android:layout_width="match_parent"
91
            android:layout_height="match_parent" />
92
 
93
        <TextView
94
            android:layout_width="match_parent"
95
            android:layout_height="wrap_content"
96
            android:text="No hay conexión" />
97
 
98
    </LinearLayout>
99
-->
100
 
101
 
102
    <com.google.android.material.navigation.NavigationView
103
        android:id="@+id/navigation_view"
104
        android:layout_width="wrap_content"
105
        android:layout_height="match_parent"
106
        android:layout_gravity="start"
107
        android:fitsSystemWindows="true"
108
        app:headerLayout="@layout/nav_header"
109
        app:itemBackground="@drawable/drawer_background_selector"
110
        app:itemIconTint="@drawable/drawer_selector"
111
        app:itemTextColor="@drawable/drawer_selector"
112
        app:menu="@menu/activity_main_drawer" />
113
 
114
    <!--
115
         "
116
    -->
117
 
118
 
119
 
120
</androidx.drawerlayout.widget.DrawerLayout>