evrencoskun / TableView

TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
MIT License
3.14k stars 457 forks source link

cellviewholder with edit Text is not working after scroll #397

Open priyadharsinipri opened 2 years ago

priyadharsinipri commented 2 years ago

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/cell_container" android:layout_width="150dp" android:layout_height="@dimen/cell_height" android:background="@color/cell_background_color" android:gravity="center" android:orientation="vertical">

<RelativeLayout
    android:id="@+id/cell_container_rl"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="@dimen/dp_1">

    <EditText
        android:id="@+id/cell_data"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center_vertical"
        android:layout_marginStart="5dp"
        android:layout_marginEnd="5dp"
        android:enabled="false"
        android:gravity="center"
        android:maxLines="1"
        android:singleLine="true"
        android:background="@android:color/transparent"
        android:imeOptions="flagNoExtractUi|actionNext"
        android:textColor="@color/table_view_default_text_color"
        android:visibility="visible"
        tools:text="Cell Data" />

</RelativeLayout>

here aftre scrolling right the cells with edit text are becoming not editable