Changeset View
Changeset View
Standalone View
Standalone View
res/layout/activity_main.xml
1 | <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | 1 | <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
---|---|---|---|---|---|
2 | xmlns:app="http://schemas.android.com/apk/res-auto" | 2 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
3 | xmlns:tools="http://schemas.android.com/tools" | 3 | xmlns:tools="http://schemas.android.com/tools" | ||
4 | android:id="@+id/drawer_layout" | 4 | android:id="@+id/drawer_layout" | ||
5 | android:layout_width="match_parent" | 5 | android:layout_width="match_parent" | ||
6 | android:layout_height="match_parent" | 6 | android:layout_height="match_parent" | ||
7 | android:fitsSystemWindows="true"> <!-- fitSystemWindows to make the drawer slide below the Lollipop transparent status bar --> | 7 | android:fitsSystemWindows="true"> <!-- fitSystemWindows to make the drawer slide below the Lollipop transparent status bar --> | ||
8 | 8 | | |||
9 | <android.support.design.widget.CoordinatorLayout | 9 | <androidx.coordinatorlayout.widget.CoordinatorLayout | ||
10 | android:id="@+id/coordinatorLayout" | 10 | android:id="@+id/coordinatorLayout" | ||
11 | android:layout_height="match_parent" | 11 | android:layout_height="match_parent" | ||
12 | android:layout_width="match_parent" | 12 | android:layout_width="match_parent" | ||
13 | tools:context="org.kde.kdeconnect.UserInterface.MainActivity"> | 13 | tools:context="org.kde.kdeconnect.UserInterface.MainActivity"> | ||
14 | 14 | | |||
15 | <android.support.design.widget.AppBarLayout | 15 | <com.google.android.material.appbar.AppBarLayout | ||
16 | android:layout_height="wrap_content" | 16 | android:layout_height="wrap_content" | ||
17 | android:layout_width="match_parent" | 17 | android:layout_width="match_parent" | ||
18 | android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | 18 | android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> | ||
19 | 19 | | |||
20 | <android.support.v7.widget.Toolbar | 20 | <androidx.appcompat.widget.Toolbar | ||
21 | android:id="@+id/toolbar" | 21 | android:id="@+id/toolbar" | ||
22 | android:layout_width="match_parent" | 22 | android:layout_width="match_parent" | ||
23 | android:layout_height="?attr/actionBarSize" | 23 | android:layout_height="?attr/actionBarSize" | ||
24 | android:elevation="8dp"/> | 24 | android:elevation="8dp"/> | ||
25 | </android.support.design.widget.AppBarLayout> | 25 | </com.google.android.material.appbar.AppBarLayout> | ||
26 | 26 | | |||
27 | <FrameLayout | 27 | <FrameLayout | ||
28 | android:id="@+id/container" | 28 | android:id="@+id/container" | ||
29 | android:layout_width="match_parent" | 29 | android:layout_width="match_parent" | ||
30 | android:layout_height="match_parent" | 30 | android:layout_height="match_parent" | ||
31 | app:layout_behavior="@string/appbar_scrolling_view_behavior"/> | 31 | app:layout_behavior="@string/appbar_scrolling_view_behavior"/> | ||
32 | 32 | | |||
33 | </android.support.design.widget.CoordinatorLayout> | 33 | </androidx.coordinatorlayout.widget.CoordinatorLayout> | ||
34 | 34 | | |||
35 | <android.support.design.widget.NavigationView | 35 | <com.google.android.material.navigation.NavigationView | ||
36 | android:id="@+id/navigation_drawer" | 36 | android:id="@+id/navigation_drawer" | ||
37 | android:layout_width="wrap_content" | 37 | android:layout_width="wrap_content" | ||
38 | android:layout_height="match_parent" | 38 | android:layout_height="match_parent" | ||
39 | android:layout_gravity="start" | 39 | android:layout_gravity="start" | ||
40 | app:headerLayout="@layout/nav_header" | 40 | app:headerLayout="@layout/nav_header" | ||
41 | style="?attr/mainNavigationViewStyle" /> | 41 | style="?attr/mainNavigationViewStyle" /> | ||
42 | 42 | | |||
43 | </android.support.v4.widget.DrawerLayout> | 43 | </androidx.drawerlayout.widget.DrawerLayout> |