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

102 lines
4.4 KiB
XML
Raw Normal View History

2020-04-07 09:36:12 -07:00
<?xml version="1.0" encoding="utf-8"?>
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"
2020-09-23 22:47:45 -04:00
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
2021-04-11 12:10:17 +02:00
android:theme="@style/MyToolbar"
2020-09-23 22:47:45 -04:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/imageView5"
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" />
</androidx.appcompat.widget.Toolbar>
</androidx.constraintlayout.widget.ConstraintLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Screen.messages -> MessagesContent()
Screen.settings -> SettingsContent()
Screen.users -> UsersContent()
Screen.channel -> ChannelContent(UIState.getChannel())
Screen.map -> MapContent()
<com.google.android.material.tabs.TabItem
android:icon="@drawable/ic_twotone_message_24"
android:text="Messages"
2020-06-18 23:05:33 -04:00
android:layout_height="wrap_content"
2020-09-23 22:47:45 -04:00
android:layout_width="wrap_content" />
<com.google.android.material.tabs.TabItem
android:icon="@drawable/ic_twotone_settings_applications_24"
android:text="Settings"
2020-06-18 23:05:33 -04:00
android:layout_height="wrap_content"
2020-09-23 22:47:45 -04:00
android:layout_width="wrap_content" />
-->
2020-04-07 09:36:12 -07:00
2020-09-23 22:47:45 -04:00
</com.google.android.material.tabs.TabLayout>
2020-04-07 10:40:01 -07:00
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" />
2020-04-07 09:36:12 -07:00
2020-09-23 22:47:45 -04:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</FrameLayout>