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 454 forks source link

Tableview cannot be edited #321

Open Jhon354202 opened 4 years ago

Jhon354202 commented 4 years ago

The textview of tableview is replaced by EditText, which can't pop up on the mobile phone, and the input keyboard can't be edited。How can I realize the editing function?

mgpx commented 4 years ago

Hi, I don't know if I understand your problem very well, but I implemented the editing function here in my app

<EditText
            ...
            android:id="@+id/cell_data"
            android:background="@android:color/transparent"
            android:imeOptions="flagNoExtractUi|actionNext"
            .../>

The flagNoExtractUiflag, does not open the editing window when the phone is landscape mode, and android:background="@android: color/ transparent" is so that the underline does not appear, then just take the edittext edit listener and save it on your model.