sunflower
sunflower copied to clipboard
Dynamic views using databinding
Can we create n no of edittext (provided by user) and inflate them in our layout using data binding? If so then how can we create observableFields for those dynamic views?
You can't actually inflate n no of EditText in the xml layout file using databinding, bindings are generated in compile time. My suggestion is use a RecyclerView to show n no of fields or you can programmatically generate the UI if the value of n is small.