Grundaufbau der App
[DHBWCampusApp.git] / app / src / main / res / layout / nav_header_campus_app.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     android:layout_width="match_parent"
4     android:layout_height="@dimen/nav_header_height"
5     android:background="@drawable/dhbw_campus"
6     android:gravity="bottom"
7     android:orientation="vertical"
8     android:theme="@style/ThemeOverlay.AppCompat.Dark"
9     android:weightSum="1">
10
11     <RelativeLayout
12         android:layout_width="match_parent"
13         android:layout_height="match_parent">
14
15         <ImageView
16             android:id="@+id/imageView"
17             android:layout_width="140dp"
18             android:layout_height="wrap_content"
19             android:paddingTop="@dimen/nav_header_vertical_spacing"
20             android:src="@drawable/dhbw_logo"
21             android:adjustViewBounds="true"
22             android:layout_alignParentTop="true"
23             android:layout_alignParentLeft="true"
24             android:layout_alignParentStart="true"
25             android:layout_marginTop="-8dp"
26             android:layout_marginLeft="8dp" />
27
28         <TextView
29             android:layout_width="wrap_content"
30             android:layout_height="wrap_content"
31             android:textAppearance="?android:attr/textAppearanceLarge"
32             android:text="Lörrach"
33             android:id="@+id/textView2"
34             android:textColor="#5d6971"
35             android:layout_alignBottom="@+id/imageView"
36             android:layout_toRightOf="@+id/imageView"
37             android:layout_toEndOf="@+id/imageView"
38             android:layout_marginBottom="18dp"
39             android:layout_marginLeft="8dp"
40             android:textSize="28sp" />
41
42         <TextView
43             android:layout_width="wrap_content"
44             android:layout_height="wrap_content"
45             android:paddingTop="@dimen/nav_header_vertical_spacing"
46             android:text="Campus App"
47             android:textAppearance="@style/TextAppearance.AppCompat.Body1"
48             android:textSize="22sp"
49             android:textColor="#ffffff"
50             android:layout_alignLeft="@+id/textView2"
51             android:layout_alignStart="@+id/textView2"
52             android:layout_alignTop="@+id/textView2"
53             android:layout_marginTop="12dp" />
54     </RelativeLayout>
55
56 </LinearLayout>