I have build a layout programmatically in Android (a treeview) and now I'd like to add to the built view a topbar (topbar.xml).
So what I need is instead of:
setContentView(scroll)
Something like:
inflateInMyViewCalledScroll(topbar.xml)
setContentView(scroll)
Thanks for your suggestions
Inflate topbar.xml using LayoutInflater, putting the results into scroll:
getLayoutInflater().inflate(R.layout.topbar, scroll);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With