Pablo
10/21/2020, 5:25 PMEditText
.
Example:
ListItem1 needs Name, Surname, Age so on DetailFragment I should only show these EditText
ListItem2 needs Url so on DetailFragment I should only show one EditText
ListItem3 needs 8 fields so on DetailFragment I should show 8 EditText
And so on ...
So, I thought to have a DetailListItemXFragment and on each Fragment have the stuff that the item needs, but if it grows I'll end up with N DetailFragment, but otherwise the logic for DetailFragment if I have only one will be huge.
So I want to know a proposal of a clean arch like creating a FactoryDetailFragment or something to make it scalable, any idea?Casey Brooks
10/21/2020, 5:37 PM