]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/nav_header_layout.xml
style for error texts
[mobile-ledger.git] / app / src / main / res / layout / nav_header_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2020 Damyan Ivanov.
4   ~ This file is part of MoLe.
5   ~ MoLe is free software: you can distribute it and/or modify it
6   ~ under the term of the GNU General Public License as published by
7   ~ the Free Software Foundation, either version 3 of the License, or
8   ~ (at your opinion), any later version.
9   ~
10   ~ MoLe is distributed in the hope that it will be useful,
11   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   ~ GNU General Public License terms for details.
14   ~
15   ~ You should have received a copy of the GNU General Public License
16   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
17   -->
18
19 <LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:tools="http://schemas.android.com/tools"
22     android:id="@+id/nav_header"
23     android:layout_width="match_parent"
24     android:layout_height="wrap_content"
25     android:background="@drawable/side_nav_bar"
26     android:gravity="center_vertical"
27     android:orientation="horizontal"
28     android:padding="@dimen/activity_vertical_margin"
29     android:theme="@style/ThemeOverlay.AppCompat.Dark"
30     app:layout_constraintTop_toTopOf="parent"
31     tools:showIn="@layout/main_navigation">
32
33     <include layout="@layout/nav_header_logo" />
34
35     <LinearLayout
36         android:layout_width="match_parent"
37         android:layout_height="match_parent"
38         android:layout_marginStart="@dimen/activity_horizontal_margin"
39         android:layout_marginEnd="@dimen/activity_horizontal_margin"
40         android:gravity="center_vertical"
41         android:orientation="vertical">
42
43         <TextView
44             android:layout_width="match_parent"
45             android:layout_height="wrap_content"
46             android:text="@string/app_name"
47             android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
48
49         <TextView
50             android:id="@+id/drawer_version_text"
51             android:layout_width="wrap_content"
52             android:layout_height="wrap_content"
53             android:text="dummy version"
54             tools:ignore="HardcodedText" />
55     </LinearLayout>
56
57 </LinearLayout>