Thanks for your reply raju.

For my app i need a separate activity for each tab.
B'coz for some tab i need to show my previous position itself.
( without using flag )
For some other tabs i need to call onCreate() each time when we click
particular tab. ( using flag )


On Aug 2, 7:18 pm, raju bhusani <raju.bhus...@gmail.com> wrote:
> Just one activity is enough for doing this,
>
> Just do this when navigating to the other tab the previous layout visibility
> set to gone and when loading fresh tab just set visibility to visible.
>
> On Mon, Aug 2, 2010 at 3:03 PM, Sasikumar.S <sasikumar.it1...@gmail.com>wrote:
>
>
>
> > I'm using separate activity for each tab.
>
> > same as like this example
>
> >http://www.androidpeople.com/android-tabhost-tutorial-part-1/
>
> > On Jul 31, 9:32 am, "b...@bresnan.net" <b...@bresnan.net> wrote:
> > > Does the code reflect the changes between tabs on your onTouchEvent?
> > > I'd say they would need to be seperate activities.
>
> > > On Jul 28, 11:01 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote:
>
> > > > Thanks for your reply Richard.
>
> > > > Below is my tabbar xml code.
>
> > > > maintab.xml
>
> > > > <?xml version="1.0" encoding="utf-8"?>
>
> > > > <TabHost android:layout_width="fill_parent"
> > > >         android:layout_height="fill_parent" xmlns:android="http://
> > > > schemas.android.com/apk/res/android"
> > > >         android:id="@android:id/tabhost">
> > > >         <LinearLayout android:id="@+id/LinearLayout01"
> > > >                 android:orientation="vertical"
> > android:layout_height="fill_parent"
> > > >                 android:layout_width="fill_parent">
> > > >                 <TabWidget android:id="@android:id/tabs"
> > > >                         android:layout_height="wrap_content"
> > > > android:layout_width="fill_parent"></TabWidget>
> > > >                 <FrameLayout android:id="@android:id/tabcontent"
> > > >                         android:layout_height="fill_parent"
> > > > android:layout_width="fill_parent"></FrameLayout>
> > > >         </LinearLayout>
>
> > > > </TabHost>
>
> > > > tab1.xml
>
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <LinearLayout android:id="@+id/LinearLayout01"
> > > >         android:layout_width="fill_parent"
> > > > android:layout_height="fill_parent"
> > > >         xmlns:android="http://schemas.android.com/apk/res/android";
> > > >         android:orientation="vertical">
> > > >         <Button android:text="@+id/Button01" android:id="@+id/Button01"
> > > >                 android:layout_width="wrap_content"
> > > > android:layout_height="wrap_content"></Button>
> > > >         <Button android:text="@+id/Button02" android:id="@+id/Button02"
> > > >                 android:layout_width="wrap_content"
> > > > android:layout_height="wrap_content"></Button>
> > > > </LinearLayout>
>
> > > > tab2.xml
>
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <LinearLayout android:id="@+id/LinearLayout01"
> > > >         android:layout_width="fill_parent"
> > > > android:layout_height="fill_parent"
> > > >         xmlns:android="http://schemas.android.com/apk/res/android";
> > > >         android:orientation="vertical">
> > > >         <Button android:text="@+id/Button01" android:id="@+id/Button01"
> > > >                 android:layout_width="wrap_content"
> > > > android:layout_height="wrap_content"></Button>
> > > >         <Button android:text="@+id/Button02" android:id="@+id/Button02"
> > > >                 android:layout_width="wrap_content"
> > > > android:layout_height="wrap_content"></Button>
> > > > </LinearLayout>
>
> > > > In these for tab1.xml & tab2.xml, I'm not setting any background
> > > > image.
>
> > > > On Jul 29, 2:58 am, RichardC <richard.crit...@googlemail.com> wrote:
>
> > > > > Can you show us the layout file for the problem activity?
>
> > > > > On Jul 28, 2:14 pm, "Sasikumar.S" <sasikumar.it1...@gmail.com>
> > wrote:
>
> > > > > > Hi,
>
> > > > > > In my app the i have 3 tabs. When i try to change the tab, the tab
> > > > > > content overlaps.
>
> > > > > > Same as the below image
>
> > > > > >http://i.imgur.com/7iaVS.png
>
> > > > > > Any Suggestion to resolve from this ?..- Hide quoted text -
>
> > > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Thanks & Regards
> B.NagaRaju
> Software Engineer
> 9966990732
> WWW.arijasoft.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to