Questions tagged [tabactivity]

This tag is related to android TabActivity. It is an activity that contains and runs multiple embedded activities or views.

320 questions
2
votes
1 answer

Maintainig state of child activities in TabGroupActivity

I have followed this tutorial for my application. I have: Tab 1: Tabgroupactivity1>(startchildactivity)MainActivty>(startchildactivity)ListActivity>(startchildactivity)DetailActivity similarly I have other two tabs. The thing is that when i Return…
Hanry
  • 5,481
  • 2
  • 40
  • 53
2
votes
1 answer

Using Google Analytics in a TabActivity in android

I have a TabActivity in android that adds 4 separate activities to a TabHost. On the onCreate of the TabActivity I call: tracker = GoogleAnalyticsTracker.getInstance(); tracker.start("MY UNIQUE GA CODE HERE", 10, getApplication()); And on the…
craigk
  • 1,294
  • 2
  • 12
  • 25
2
votes
2 answers

android change textview outside of TabWidget within an activity

I have an application with a few tabs which all belong to the same TabHost. Is there any way to change the TextView android:text value before the TabWidget in any activity other than the main activity which extends TabActivity? This is my…
iCantSeeSharp
  • 3,880
  • 4
  • 42
  • 65
2
votes
1 answer

Android startActivityForResult within TabActivity

I searched for my specific question and I couldn't find an answer of my problem. On my app, my main activity has a tab host with 3 tabs. All three tabs have a list view with items. The tab1 list view items are related to both tab 2 and tab 3 list…
2
votes
1 answer

Android deprecated tabactivity, when will this no longer work

when will the deprecated tabactivity no longer work in future versions of Android? I am asking because Android is open source so someone in the dev community might be lurking here for designs that I get from clients which mimick iOS style tab-bars,…
CQM
  • 42,592
  • 75
  • 224
  • 366
2
votes
1 answer

How to add tab layout without letting the activity to extend TabActivity?

I have an activity in which i am supposed to use TabBar , I have already extended this activity from other class so i cant extend TabActivity. I read one solution to use tabHost.setup() HERE. But i am not able to execute that way.getting…
Parikh Vaibhav
  • 199
  • 2
  • 12
2
votes
3 answers

findViewById on Custom Title Bar within Tab Activity

I have a custom title bar set on my TabActivity. The custom title bar contains a TextView and an ImageView in it. The tabHost has multiple tabs. What I want to do is to access the ImageView resource in the tabs. I am accessing the TextView from…
rizzz86
  • 3,862
  • 8
  • 35
  • 52
2
votes
1 answer

Android :Changing tabs on Fling Gesture Event- not working for ListActivity inside TabActivity

I have a tabactivity with three tabs. One of the tab contains ListActivity and two others contains simple Activity. And i have implemented OnGestureListener to change the tab on fling event. The onTouchEvent and 'onFling' events are not being called…
gtiwari333
  • 24,554
  • 15
  • 75
  • 102
2
votes
1 answer

TabHost shows default Activity after showing new activity for a while

Thanks for reading. I am facing a problem where when I start a new Activity in my TabHost, the new Activity only shows up for a few seconds before returning to the default Activity in that Tab. I am using the TabHost for laying out 5 tabs in my app.…
Sagar Hatekar
  • 8,700
  • 14
  • 56
  • 72
2
votes
2 answers

How to disable tabs from the activities inside the tabs in Android

My application has a TabActivity which contains 4 tabs. Each tab contains the corresponding activities. The activity in the first tab is the Boot Activity. Based on some conditions I have to enable/disable the other 3 tabs from this Activity. Can…
bHaRaTh
  • 3,464
  • 4
  • 34
  • 32
2
votes
1 answer

Call custom method in started Activity from TabActivity on Button click

I creat 4 intents of activities(which i add to TabHost) in my main TabActivity. I also have button with onClick method. When this button is clicked i put some extras in intent of activity Rezultati. Now i am trying to call custom method of started…
user420589
  • 59
  • 2
  • 5
2
votes
1 answer

How to use the same Activity for 3 different tabs in TabActivity with different inputs

I have an TabActivity which has 3 Tabs reusing the same Activity for all the 3 tabs. I am differentiating by means of extras(intent.putextras()) which i shall display the contents of each tab Now the problem is when we switch the tab from each…
Vamsi
  • 5,853
  • 6
  • 29
  • 36
2
votes
1 answer

Tab contents are overlapping in android application

I have a TabActivity to show two list, one list in each tab. While starting the application the contents of two tabs are shown as overlapping. But when the other tab is selected then its working properly. Please help me My code is: @Override public…
Rijo
  • 31
  • 1
  • 4
2
votes
1 answer

How to animate TabActivity change in Android?

Is it possible to animate the transition between an Activity in a tab to another one? I mean, when the user clicks a tab in the TabWidget and the shown tab content changes to another Activity. With the default configuration it just changes but I…
gskbyte
  • 467
  • 3
  • 13
2
votes
2 answers

Need Help on TabActivity

I implement a TabActivity exactly like this - http://blog.henriklarsentoft.com/2010/07/android-tabactivity-nested-activities/ Now the problem is, I have some Spinner in an activity. When i click to expand the Spinner - the following exception…
Shaiful
  • 5,643
  • 5
  • 38
  • 41