убрать? вот код:
                  
                  
                  <?xml version="1.0" encoding="utf-8"?>
                  
                  
                  <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
                  
                  
                      xmlns:app="http://schemas.android.com/apk/res-auto"
                  
                  
                      android:id="@+id/form_btn"
                  
                  
                      android:layout_width="385dp"
                  
                  
                      android:layout_height="50dp"
                  
                  
                      android:layout_margin="10dp"
                  
                  
                      android:padding="10dp"
                  
                  
                      app:cardBackgroundColor="#DAECC7"
                  
                  
                      app:cardCornerRadius="10dp">
                  
                  
                  
                  
                  
                      <LinearLayout
                  
                  
                          android:layout_width="match_parent"
                  
                  
                          android:layout_height="match_parent"
                  
                  
                  
                  
                  
                          >
                  
                  
                  
                  
                  
                          <TextView
                  
                  
                              android:id="@+id/task_title"
                  
                  
                              android:layout_width="wrap_content"
                  
                  
                              android:layout_height="wrap_content"
                  
                  
                              android:layout_gravity="center"
                  
                  
                              android:layout_weight="1"
                  
                  
                              android:padding="3sp"
                  
                  
                              android:text="Текст"
                  
                  
                              android:textSize="20sp" />
                  
                  
                  
                  
                  
                          <ImageButton
                  
                  
                              android:id="@+id/btnDelete"
                  
                  
                              android:layout_width="wrap_content"
                  
                  
                              android:layout_height="wrap_content"
                  
                  
                              android:layout_gravity="center"
                  
                  
                              android:layout_margin="8dp"
                  
                  
                              android:background="#0000"
                  
                  
                              android:contentDescription="TODO"
                  
                  
                              android:onClick="deleteTask"
                  
                  
                              android:src="@drawable/ic_delete_sweep_white_24dp" />
                  
                  
                      </LinearLayout>
                  
                  
                  
                  
                  
                  
                  
                  
                  </androidx.cardview.widget.CardView>
                  
                  
                
Вот item_list.xml
Обсуждают сегодня