2019-11-21 17:31:37 +01:00
|
|
|
<?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"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.log.LogViewModel" />
|
2019-11-21 17:31:37 +01:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
2020-01-06 19:03:36 +01:00
|
|
|
<FrameLayout
|
2019-11-21 17:31:37 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2020-01-06 19:03:36 +01:00
|
|
|
<HorizontalScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
adapter="@{viewModel.consoleAdapter}"
|
|
|
|
itemBinding="@{viewModel.itemConsoleBinding}"
|
|
|
|
items="@{viewModel.itemsConsole}"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size}"
|
|
|
|
android:paddingBottom="@{viewModel.insets.bottom}"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:listitem="@layout/item_console"
|
|
|
|
tools:paddingTop="24dp" />
|
|
|
|
|
|
|
|
</HorizontalScrollView>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
gone="@{!viewModel.itemsConsole.empty}"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center">
|
|
|
|
|
|
|
|
<include
|
|
|
|
item="@{viewModel.itemMagiskEmpty}"
|
|
|
|
layout="@layout/item_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2019-11-21 17:31:37 +01:00
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|