sforkowany z mirror/meshtastic-android
74 wiersze
3.5 KiB
XML
74 wiersze
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
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"
|
|
tools:context=".MainActivity"
|
|
android:id="@+id/mainActivityLayout">
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
style="@style/MyToolbar"
|
|
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/appIconImageVIew"
|
|
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"
|
|
app:srcCompat="@drawable/app_icon"
|
|
tools:layout_editor_absoluteX="16dp"
|
|
tools:layout_editor_absoluteY="18dp" />
|
|
|
|
<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" />
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
</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"
|
|
app:tabIconTint="@color/tab_color_selector"
|
|
app:tabIndicatorColor="@color/selectedColor" />
|
|
</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>
|
|
</FrameLayout> |