diff options
author | Amit Kumar <amitkma@e.email> | 2021-05-15 01:18:21 +0530 |
---|---|---|
committer | Amit Kumar <amitkma@e.email> | 2021-05-15 01:18:21 +0530 |
commit | 47194484d7c2ca6ce8103312b9dbfb1244e8c4e6 (patch) | |
tree | 643171c9af65cd56ffe1fe854ae52f535f5c077a /app/src/main/res/layout/topbar.xml | |
parent | da842396556248654acacfdebbc01f5e20132eb6 (diff) |
Use MaterialToolbar from MDC instead of android Toolbar
Diffstat (limited to 'app/src/main/res/layout/topbar.xml')
-rw-r--r-- | app/src/main/res/layout/topbar.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app/src/main/res/layout/topbar.xml b/app/src/main/res/layout/topbar.xml new file mode 100644 index 0000000..9142d79 --- /dev/null +++ b/app/src/main/res/layout/topbar.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + ~ Copyright (C) 2021 E FOUNDATION + ~ + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see <https://www.gnu.org/licenses/>. + --> + +<com.google.android.material.appbar.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_height="wrap_content" + android:layout_width="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + app:elevation="0dp" + > + + <com.google.android.material.appbar.MaterialToolbar + android:background="@color/white" + android:id="@+id/toolbar" + app:titleCentered="true" + android:elevation="0dp" + android:layout_height="?android:attr/actionBarSize" + android:layout_width="match_parent" + tools:layout_height="56dp" + /> +</com.google.android.material.appbar.AppBarLayout> |