Magisk/app/src/main/res/layout/item_developer.xml

70 lines
2.7 KiB
XML
Raw Normal View History

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"
type="com.topjohnwu.magisk.model.entity.recycler.DeveloperItem" />
2019-10-05 12:42:27 +02:00
<variable
name="viewModel"
2020-01-12 17:43:09 +01: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
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_gravity="center|start">
2019-10-02 18:15:16 +02:00
<com.google.android.material.card.MaterialCardView
2019-12-02 18:39:22 +01:00
style="@style/WidgetFoundation.Card.Primary"
2019-10-02 18:15:16 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
2019-11-01 21:30:29 +01:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2019-10-02 18:15:16 +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}"
2019-11-25 17:25:49 +01:00
android:textAppearance="@style/AppearanceFoundation.Caption.OnPrimary"
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>
2020-01-12 17:43:09 +01:00
</layout>