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">
    
    &lt;android.support.v7.widget.RecyclerView
        android:id="@+id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"&gt;
    
    &lt;/android.support.v7.widget.RecyclerView&gt;
    

    </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">

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"&gt;
        &lt;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"/&gt;
        &lt;LinearLayout
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="@color/colorGrey"/&gt;
        &lt;CheckBox
            android:id="@+id/email"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1.1"
            android:checked="true"/&gt;
        &lt;LinearLayout
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="@color/colorGrey"/&gt;
        &lt;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"/&gt;
        &lt;LinearLayout
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="@color/colorGrey"/&gt;
        &lt;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"/&gt;
        &lt;LinearLayout
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="@color/colorGrey"/&gt;
        &lt;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"/&gt;
    &lt;/LinearLayout&gt;
    
    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/colorGrey"/&gt;
    

    </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 for Checkbox♪ 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.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2