Meshtastic-Android/app/src/main/res/layout/activity_main.xml

97 lines
4.4 KiB
XML
Raw Normal View History

2020-04-07 09:36:12 -07:00
<?xml version="1.0" encoding="utf-8"?>
<!--
2025-01-02 06:50:26 -03:00
Copyright (c) 2025 Meshtastic LLC
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/>.
-->
2020-09-23 22:47:45 -04:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-04-07 09:36:12 -07:00
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-09-23 22:47:45 -04:00
tools:context=".MainActivity"
android:id="@+id/mainActivityLayout">
2020-04-07 09:36:12 -07:00
2020-09-23 22:47:45 -04:00
<androidx.coordinatorlayout.widget.CoordinatorLayout
2020-04-07 09:36:12 -07:00
android:layout_width="match_parent"
2020-09-23 22:47:45 -04:00
android:layout_height="match_parent">
2020-04-07 09:36:12 -07:00
2020-09-23 22:47:45 -04:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appBarLayout"
2020-04-08 11:57:31 -07:00
android:layout_width="match_parent"
2021-05-09 09:02:53 +08:00
android:layout_height="wrap_content">
2020-09-23 22:47:45 -04:00
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
2021-05-09 09:02:53 +08:00
<com.google.android.material.appbar.MaterialToolbar
2020-09-23 22:47:45 -04:00
android:id="@+id/toolbar"
android:layout_width="0dp"
android:layout_height="wrap_content"
2021-05-09 09:02:53 +08:00
style="@style/MyToolbar"
2020-09-23 22:47:45 -04:00
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
2021-05-09 09:02:53 +08:00
android:id="@+id/appIconImageVIew"
2020-09-23 22:47:45 -04:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/application_icon"
android:scaleType="center"
android:scaleX="1.5"
android:scaleY="1.5"
2021-01-30 14:59:28 +08:00
app:srcCompat="@drawable/app_icon"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="18dp" />
2020-09-23 22:47:45 -04:00
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:gravity="center"
android:minHeight="?actionBarSize"
android:padding="16dp"
android:text="@string/app_name"
android:textAppearance="@style/TextAppearance.Widget.AppCompat.Toolbar.Title" />
2021-05-09 09:02:53 +08:00
</com.google.android.material.appbar.MaterialToolbar>
2020-09-23 22:47:45 -04:00
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
2021-05-09 09:19:54 +08:00
android:layout_height="wrap_content"
2023-11-18 05:51:42 -03:00
app:tabGravity="fill"
2021-05-09 09:19:54 +08:00
app:tabIconTint="@color/tab_color_selector"
2022-04-03 11:25:50 -03:00
app:tabIndicatorColor="@color/selectedColor" />
2020-09-23 22:47:45 -04:00
</com.google.android.material.appbar.AppBarLayout>
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<androidx.compose.ui.platform.ComposeView
android:id="@+id/composeView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
2022-04-03 11:25:50 -03:00
</FrameLayout>