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"
|
2019-10-26 12:41:34 +02:00
|
|
|
type="com.topjohnwu.magisk.model.entity.recycler.DeveloperItem" />
|
2019-10-05 12:42:27 +02:00
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
|
|
|
type="com.topjohnwu.magisk.redesign.home.HomeViewModel" />
|
|
|
|
|
|
|
|
</data>
|
2019-10-02 18:15:16 +02:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-26 12:41:34 +02:00
|
|
|
tools:layout_gravity="center|start">
|
2019-10-02 18:15:16 +02:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-10-26 12:41:34 +02:00
|
|
|
android:id="@+id/developer_icon"
|
|
|
|
style="?styleIconNormal"
|
|
|
|
android:padding="@dimen/l_50"
|
2019-11-01 19:02:30 +01:00
|
|
|
android:visibility="gone"
|
2019-10-26 12:41:34 +02:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2019-10-02 18:15:16 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2019-10-05 12:42:27 +02:00
|
|
|
app:srcCompat="@{item.icon}"
|
2019-10-26 12:41:34 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:srcCompat="@drawable/ic_mainline_dev" />
|
2019-10-02 18:15:16 +02:00
|
|
|
|
2019-10-26 12:41:34 +02:00
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
style="?styleCardNormal"
|
2019-10-02 18:15:16 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-26 12:41:34 +02:00
|
|
|
app:layout_constrainedWidth="true"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/developer_icon"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2019-10-02 18:15:16 +02:00
|
|
|
|
2019-10-26 12:41:34 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="@dimen/l1">
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@{item.name}"
|
|
|
|
android:textAppearance="?appearanceTextCaptionNormal"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:text="\@topjohnwu" />
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
itemBinding="@{viewModel.itemBinding}"
|
|
|
|
items="@{item.items}"
|
|
|
|
nestedScrollingEnabled="@{false}"
|
|
|
|
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_developer_link" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2019-10-02 18:15:16 +02:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
</layout>
|