-1

I want to divide my screen into four parts and add activities in each part. I am not interested in using fragment. Each activity should behave independent of other. Attached photo is showing what I exactly want to do.

enter image description here

In each child activity I want to add VideoView or WebView depending on the selection from menu item.

How can I do it. I didn't find any way to add activity to an activity. Thanks :)

PS: Activity means Activity not fragment.

Vikash Kumar Verma
  • 1,068
  • 2
  • 14
  • 30

3 Answers3

1

i strongly recommend 'using fragments' in your case as ActivityGroup is deprecated in API 13..

1

The only way you can do it by using fragments. Here is the simple example on how to add multiple fragments on single activity Link

Edit link

Community
  • 1
  • 1
Samar Ali
  • 373
  • 5
  • 13
  • The link may answer your question, but please add the relevant parts of the code in the link in your answer. – phoenix Feb 19 '16 at 09:50
0

You can achieve this design by using four fragments, one for each child view inside a single activity. The recommended way is to create a single XML layout for your activity, and create four fragments inside that layout.

Muhammad Ibrahim
  • 289
  • 2
  • 12