I created an XML with LinearLayout, in it I have a Spinner and an EditText. On my screen I have a LinearLayout that should receive that other layout I created.
My question is: how can I add this custom layout to my screen within the other layout?
I've tried using findById to get the custom layout, but it returns null.
Whenever I click on a button I should add the custom layout within the linear one that is on my screen.
How do I do it?