Can u post source code or send it to me. I'm also trying to create 4 tabs
at Top and 4 tabs at bottom, but not able to do it.
On Thursday, 2 February 2012 06:18:32 UTC+5:30, AndroidGirl8 wrote:
>
>
>
> I made ActivityGroup which combined two activities one activity for
> TOP tab and second one for BOTTOM tab and it works fine BUT when I
> click in any activity on tab both tabs (top and bottom) still there
> however this activity don't have them.
>
> My question now how I finish this ActivityGroup how I get rid of it
> when I click on any activity in this tabs i tried using finish() but i
> throws exception . may be this a stupid question but i still beginner
> in android and really appreciate any help
>
> Here is my code :
>
> public class Multi extends ActivityGroup{
> LinearLayout layout;
> LinearLayout layout_s1;
> LinearLayout layout_s2;
>
>
> @Override
> protected void onCreate(Bundle savedInstanceState) {
> // TODO Auto-generated method stub
> super.onCreate(savedInstanceState);
>
> setContentView(R.layout.multiview);
>
> layout = (LinearLayout) findViewById(R.id.multiview_layout);
> layout_s1 = (LinearLayout) findViewById(R.id.my_view_1);
> layout_s2 = (LinearLayout) findViewById(R.id.my_view_2);
>
> LocalActivityManager mgr = getLocalActivityManager();
>
> layout_s1.addView((mgr.startActivity("MyOtherActivityInstance1",
> new Intent(this, Tab1.class))).getDecorView());
> layout_s2.addView((mgr.startActivity("MyOtherActivityInstance2",
> new Intent(this, Tab2.class))).getDecorView());
>
>
> }
> }
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en