[M] Added unrolling region selection and basic test
This commit is contained in:
		| @@ -1,35 +1,55 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <FrameLayout 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" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     xmlns:app="http://schemas.android.com/apk/res-auto"> | ||||
|     android:layout_height="wrap_content"> | ||||
|  | ||||
|     <androidx.constraintlayout.widget.ConstraintLayout | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" > | ||||
|         android:layout_height="wrap_content"> | ||||
|  | ||||
|         <CheckBox | ||||
|             android:id="@+id/checkBox" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             app:layout_constraintEnd_toStartOf="@id/textView" | ||||
|             android:layout_width="32dp" | ||||
|             android:layout_height="32dp" | ||||
|             app:layout_constraintBottom_toTopOf="@+id/sub_item" | ||||
|             app:layout_constraintEnd_toStartOf="@+id/textView" | ||||
|             app:layout_constraintStart_toStartOf="parent" | ||||
|             app:layout_constraintTop_toTopOf="parent" | ||||
|             app:layout_constraintBottom_toBottomOf="parent" /> | ||||
|             app:layout_constraintTop_toTopOf="parent" /> | ||||
|  | ||||
|         <TextView | ||||
|             android:id="@+id/textView" | ||||
|             android:layout_width="0dp" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_height="0dp" | ||||
|             android:gravity="start|center_vertical" | ||||
|             android:textColor="@color/design_default_color_on_primary" | ||||
|             app:layout_constraintBottom_toBottomOf="@+id/checkBox" | ||||
|             app:layout_constraintEnd_toEndOf="parent" | ||||
|             app:layout_constraintStart_toEndOf="@id/checkBox" | ||||
|             app:layout_constraintTop_toTopOf="parent" | ||||
|             app:layout_constraintBottom_toBottomOf="parent" /> | ||||
|             app:layout_constraintTop_toTopOf="@+id/checkBox" | ||||
|             app:layout_constraintVertical_bias="0.5" /> | ||||
|  | ||||
|         <LinearLayout | ||||
|             android:id="@+id/sub_item" | ||||
|             android:layout_width="0dp" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_marginStart="32dp" | ||||
|             android:orientation="vertical" | ||||
|             app:layout_constraintBottom_toBottomOf="parent" | ||||
|             app:layout_constraintEnd_toEndOf="parent" | ||||
|             app:layout_constraintStart_toStartOf="parent" | ||||
|             app:layout_constraintTop_toBottomOf="@+id/checkBox"> | ||||
|  | ||||
|             <androidx.recyclerview.widget.RecyclerView | ||||
|                 android:id="@+id/list_list" | ||||
|                 android:layout_width="match_parent" | ||||
|                 android:layout_height="0dp" | ||||
|                 android:layout_weight="1" | ||||
|                 android:scrollbars="vertical" /> | ||||
|         </LinearLayout> | ||||
|  | ||||
|     </androidx.constraintlayout.widget.ConstraintLayout> | ||||
|  | ||||
|  | ||||
|  | ||||
| </FrameLayout> | ||||
		Reference in New Issue
	
	Block a user