mardi 2 juin 2020

How to add checkbox to my recyclerviewer xml?

I created Recyclerviewer inside the fragment. Viewer consists of 2 textviews - vertical and I have underline divider under those textviews. How can I add checkbox which will be right of my first textview, but keep second textview as a same group so I don't get 2 underline dividers? More details on this image: enter image description here

item_tab1 xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <TextView
        android:id="@+id/Item1Name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Ïtem 1"
        android:textSize="30dp"
        android:textStyle="bold"></TextView>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SubName"
        android:textSize="15dp"
        android:id="@+id/Item1SubName">
    </TextView>
</LinearLayout>



Aucun commentaire:

Enregistrer un commentaire