<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <data>

        <variable
            name="item"
            type="com.topjohnwu.magisk.ui.settings.BaseSettingsItem" />

    </data>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingTop="@dimen/l1"
        android:paddingBottom="@dimen/l_50">

        <TextView
            gone="@{item.title.empty}"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@{item.title}"
            android:textAppearance="@style/AppearanceFoundation.Large.Secondary"
            android:textStyle="bold"
            tools:text="@tools:sample/lorem" />

        <TextView
            gone="@{item.description.empty}"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@{item.description}"
            android:textAppearance="@style/AppearanceFoundation.Tiny.Bold"
            tools:text="@tools:sample/lorem/random" />

    </LinearLayout>

</layout>
