mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-26 19:45:26 +00:00
588e94c11d
Settings are now only on home screen as it directly relates to what user might want to do. It is highly unlikely that they would jump from any other screen to settings. Log is no longer main destination as it's not used very widely; it's been moved to Superuser screen. This screen now encapsulates all root-related stuff. Home screen is now strictly info-based, except install buttons, of course.
94 lines
3.9 KiB
XML
94 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="viewModel"
|
|
type="com.topjohnwu.magisk.redesign.MainViewModel" />
|
|
|
|
</data>
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@{viewModel.insets.left}"
|
|
android:paddingRight="@{viewModel.insets.right}"
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
<androidx.fragment.app.FragmentContainerView
|
|
android:id="@+id/main_nav_host"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/main_toolbar_wrapper"
|
|
style="?styleAppbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="@{viewModel.insets.top}">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/main_toolbar"
|
|
style="?styleToolbar"
|
|
android:layout_width="match_parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_scrollFlags="noScroll"
|
|
tools:layout_marginTop="24dp"
|
|
tools:title="Home" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/main_bottom_bar"
|
|
style="?styleCardElevated"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:layout_marginStart="@dimen/l1"
|
|
android:layout_marginEnd="@dimen/l1"
|
|
android:layout_marginBottom="@{(int) @dimen/l1 + viewModel.insets.bottom}"
|
|
tools:layout_marginBottom="64dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.bottomnavigation.BottomNavigationView
|
|
android:id="@+id/main_navigation"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
app:elevation="0dp"
|
|
app:itemIconTint="@color/color_menu_tint"
|
|
app:itemTextAppearanceActive="@style/AppearanceFoundation.Tiny.Bold"
|
|
app:itemTextAppearanceInactive="@style/AppearanceFoundation.Tiny.Bold"
|
|
app:itemTextColor="@color/color_menu_tint"
|
|
app:labelVisibilityMode="unlabeled"
|
|
app:menu="@menu/menu_bottom_nav" />
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
gone="@{viewModel.isConnected}"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:paddingBottom="@dimen/l_50"
|
|
android:text="@string/no_connection"
|
|
android:textAppearance="?appearanceTextCaptionNormal"
|
|
android:textColor="?colorError"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
</layout>
|