[ ] Change default focus, to be a parameter of addView(View* bool defaultFocus), a method on its own setDefaultFocus and an XML attribute referencing the default view by ID (defaultFocus="my/id" on the box, my/id being one of the child views). Don't use index anymore.
[ ] Write a destructor and do a little asan run to make sure everything doesn't leak
[ ] Fix focus to take direction into account (LTR / RTL)
What's missing:
Sidebar
)addView(View* bool defaultFocus)
, a method on its ownsetDefaultFocus
and an XML attribute referencing the default view by ID (defaultFocus="my/id"
on the box,my/id
being one of the child views). Don't use index anymore.