When the checkBox is pressed, the view in RecyclerView is stopped.
-
There's this layout:
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/swipe" android:layout_width="match_parent" android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView android:id="@+id/list" android:layout_width="match_parent" android:layout_height="match_parent"> </android.support.v7.widget.RecyclerView>
</android.support.v4.widget.SwipeRefreshLayout>
There's a layout.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"><LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal"> <TextView android:id="@+id/author" android:layout_width="match_parent" android:layout_height="match_parent" android:text="Прогнозист" android:layout_weight="0.9" android:gravity="center" android:paddingTop="10dp" android:paddingBottom="10dp" android:background="@color/colorWhite1" android:textColor="@color/colorBlueText" android:textStyle="bold"/> <LinearLayout android:layout_width="1dp" android:layout_height="match_parent" android:background="@color/colorGrey"/> <CheckBox android:id="@+id/email" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1.1" android:checked="true"/> <LinearLayout android:layout_width="1dp" android:layout_height="match_parent" android:background="@color/colorGrey"/> <CheckBox android:id="@+id/rss" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1.1" android:gravity="center" android:paddingTop="10dp" android:paddingBottom="10dp" android:background="@color/colorWhite1" android:checked="true"/> <LinearLayout android:layout_width="1dp" android:layout_height="match_parent" android:background="@color/colorGrey"/> <CheckBox android:id="@+id/sms" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1.1" android:gravity="center" android:paddingTop="10dp" android:paddingBottom="10dp" android:background="@color/colorWhite1" android:checked="true"/> <LinearLayout android:layout_width="1dp" android:layout_height="match_parent" android:background="@color/colorGrey"/> <CheckBox android:id="@+id/remove" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1.1" android:gravity="center" android:paddingTop="10dp" android:paddingBottom="10dp" android:background="@color/colorWhite1" android:checked="true"/> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="1dp" android:background="@color/colorGrey"/>
</LinearLayout>
When pressed on any CheckBox, or if you put it from the adapter, it's depressed and repressed.
-
There's something wrong with the app.
button
forCheckbox
♪ She's different.state
must be for cheque and non-chemical, and apparently one of them is wrong. Try changing the subject of the application.