Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nav_header_main.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84accd92cf8408c2d4e1aceeee42f5bcf26b63ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_header_view"
    android:layout_width="match_parent"
    android:layout_height="@dimen/nav_header_height"
    android:background="@color/primary"
    android:fitsSystemWindows="true">

    <androidx.appcompat.widget.AppCompatImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@string/drawer_header_background"
        android:scaleType="centerCrop"
        app:srcCompat="@drawable/background" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:paddingLeft="@dimen/spacer_2x"
        android:paddingTop="@dimen/spacer_2x"
        android:paddingRight="@dimen/spacer_2x">

        <FrameLayout
            android:id="@+id/drawer_user_avatars"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="top"
            android:layout_marginBottom="@dimen/spacer_1x">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/drawer_current_account"
                android:layout_width="@dimen/nav_drawer_header_avatar"
                android:layout_height="@dimen/nav_drawer_header_avatar"
                android:contentDescription="@string/drawer_current_account"
                app:srcCompat="@mipmap/ic_launcher_round" />

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/drawer_account_middle"
                android:layout_width="@dimen/nav_drawer_header_avatar_other_accounts_size"
                android:layout_height="@dimen/nav_drawer_header_avatar_other_accounts_size"
                android:layout_gravity="end"
                android:layout_marginEnd="@dimen/nav_drawer_header_avatar_second_account_margin"
                android:layout_marginRight="@dimen/nav_drawer_header_avatar_second_account_margin"
                android:contentDescription="@string/drawer_middle_account"
                android:visibility="gone"
                app:srcCompat="@mipmap/ic_launcher_round" />

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/drawer_account_end"
                android:layout_width="@dimen/nav_drawer_header_avatar_other_accounts_size"
                android:layout_height="@dimen/nav_drawer_header_avatar_other_accounts_size"
                android:layout_gravity="end"
                android:contentDescription="@string/drawer_end_account"
                android:visibility="gone"
                app:srcCompat="@mipmap/ic_launcher_round" />

        </FrameLayout>

        <LinearLayout
            android:id="@+id/drawer_menu_toggle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/drawer_user_avatars">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_weight="1"
                android:orientation="vertical"
                android:paddingEnd="@dimen/spacer_1x"
                android:paddingRight="@dimen/spacer_1x"
                tools:ignore="RtlSymmetry">

                <TextView
                    android:id="@+id/drawer_app_title"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:maxLines="1"
                    android:shadowColor="@android:color/black"
                    android:shadowDx="0.5"
                    android:shadowDy="0"
                    android:shadowRadius="2"
                    android:text="@string/app_name"
                    android:textColor="@android:color/white"
                    android:textSize="@dimen/drawer_header_text"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/drawer_username_full"
                    android:layout_width="match_parent"
                    android:layout_height="28dp"
                    android:ellipsize="end"
                    android:lines="1"
                    android:maxLines="1"
                    android:shadowColor="@android:color/black"
                    android:shadowDx="0.5"
                    android:shadowDy="0"
                    android:shadowRadius="2"
                    android:text="@string/app_name"
                    android:textColor="@android:color/white"
                    android:textSize="@dimen/drawer_header_subtext" />

            </LinearLayout>

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/drawer_account_chooser_toggle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginBottom="8dp"
                android:contentDescription="@string/drawer_manage_accounts"
                app:srcCompat="@drawable/ic_arrow_drop_down_black_24dp" />

        </LinearLayout>

    </RelativeLayout>

</FrameLayout>