it seems like stupid and beginner question. But can I have two activities in same layout?
So my main.xml layout is like this:
<LinearLayout>
<MapView>
<ListView>
</LinearLayout>
I have a MapActivity class that is already too long. So I planned to make a new ListActivity class that handles the ListView content.
I heard we can use Fragment but after reading the docs, it seems it is used for handling two layouts in same activity. Opposite of what I need.
Thanks
You can’t have multiple Activity to run parallely. You can use
MapActivitywithListViewas a content control.note: one can take multiple ListView control in same Activity.