I'm building an app which will scan QRcode and get values from the database. I currently have listview for this purpose, What I want is to dynamically generate textView and editText according to data row count.
            Asked
            
        
        
            Active
            
        
            Viewed 72 times
        
    0
            
            
        - 
                    you can do it with listView – Radesh Mar 06 '19 at 07:44
- 
                    tried with a list view , but I can't add editText to listview. – JJIqbal Mar 06 '19 at 07:47
- 
                    Better to use [**`RecyclerView`**](https://developer.android.com/guide/topics/ui/layout/recyclerview) – AskNilesh Mar 06 '19 at 07:47
- 
                    why dont you just inflate a layout with editttext and textview and addview to parent layout. [Example](https://stackoverflow.com/questions/21400415/inflate-layout-programmatically-within-another-layout) – Tejas Pandya Mar 06 '19 at 07:57
1 Answers
1
            It's better to use a Recycler view for this.
- create a layout with edit text and needed buttons
- Add this layout to recycle view using an adapter
- Make sure to use TextWatcher.Things will get crazy when you scroll.
 
    
    
        Lenzman
        
- 1,177
- 18
- 30
 
    