How do I maintain a radioButton's marking when scrolling a listview?

0

Good afternoon, I have an edited listView and inside it I own a radioGroup. I need that when scrolling the listView, the marking on the radioGroup does not lose its markup.

Follow the xml.

 <RadioGroup
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

        <RadioButton
            android:id="@+id/sim"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Sim"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            />

        <RadioButton
            android:id="@+id/nao"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Não"
            android:layout_below="@+id/questao"
            android:layout_toEndOf="@+id/sim"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="5dp"
            />

        <RadioButton
            android:id="@+id/na"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="NA"
            android:layout_below="@+id/questao"
            android:layout_toEndOf="@+id/nao"
            />
            </RadioGroup>
    
asked by anonymous 14.06.2017 / 16:37

0 answers