2019-10-02 18:15:16 +02: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">
|
|
|
|
|
2019-10-05 12:42:27 +02:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="item"
|
2020-08-09 06:52:02 -07:00
|
|
|
type="com.topjohnwu.magisk.model.entity.DeveloperItem" />
|
2019-10-05 12:42:27 +02:00
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.home.HomeViewModel" />
|
2019-10-05 12:42:27 +02:00
|
|
|
|
|
|
|
</data>
|
2019-10-02 18:15:16 +02:00
|
|
|
|
2020-08-09 06:52:02 -07:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2019-10-02 18:15:16 +02:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-09 06:52:02 -07:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="@dimen/l1" >
|
2019-10-02 18:15:16 +02:00
|
|
|
|
2020-08-09 06:52:02 -07:00
|
|
|
<TextView
|
2019-10-02 18:15:16 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-09 06:52:02 -07:00
|
|
|
android:text="@{item.name}"
|
|
|
|
android:textAppearance="@style/AppearanceFoundation.Caption"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="\@topjohnwu" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{item.items}"
|
|
|
|
nestedScrollingEnabled="@{false}"
|
2020-08-09 13:29:18 -07:00
|
|
|
android:overScrollMode="never"
|
2020-08-09 06:52:02 -07:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:fadingEdgeLength="@dimen/l1"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingTop="@dimen/l_50"
|
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:itemCount="3"
|
|
|
|
tools:listitem="@layout/item_icon_link" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2019-10-02 18:15:16 +02:00
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|