In general, I find declarative to be better than imperative. The "tag" for each widget can just become its _id.
However, resource consumption also needs to be taken into account. There shouldn't be a need to keep around widgets in memory that are not visible on the screen.
In general, I find declarative to be better than imperative. The "tag" for each widget can just become its
_id
.However, resource consumption also needs to be taken into account. There shouldn't be a need to keep around widgets in memory that are not visible on the screen.