Questions tagged [android-tabactivity]

TabActivity is an Activity class that contains and runs multiple embedded activities or views.

The TabActivity is an Android Activity subclass that can be used to show content in the form of tabs(with either Views or other child Activities). With the introduction of Fragments the TabActivity is deprecated and shouldn't be used in new written code(in favor of the more robust Fragment framework).

260 questions
1
vote
2 answers

Using Button and Tab simultaneously?

In my app layout I need to have dropdown list button on the top of the screen followed by a tabHost with four tabs, each tab shows different activities. and on clicking the Button(Phys) shows you this: Now what I want is that the tabcontent…
Navdroid
  • 4,453
  • 7
  • 29
  • 47
1
vote
1 answer

How can I use fragments, now that TabActivity is deprecated?

I have a main activity with a sort of dock at the bottom, with 4 icons: A, B, C, D. I already tried getting a response to a question here involving replacing a fragment within a given tab but did not get an answer. I began to think that maybe I was…
CodePrimate
  • 6,646
  • 13
  • 48
  • 86
1
vote
1 answer

Aligning fonts in tabwidget

Myself designing an app which uses GPS and Maps. I have created the UI as tabs. But i couldn't able to keep the font below the image. Code in my Mainactivity TabSpec gpsspec = tabHost.newTabSpec("GPS"); gpsspec.setIndicator("GPS",…
1
vote
1 answer

how to make the method onWindowFocusChanged(boolean) to true(or call) in one tabs of tablayout in android?

how to make the method onWindowFocusChanged(boolean) to true(or call) in one tabs of tablayout in android.. Explanation: In tablayout onWindowFocusChanged() called automatically in default activity (true), But when we click/touch on to the next…
LOG_TAG
  • 19,894
  • 12
  • 72
  • 105
1
vote
1 answer

How can I logout from my application and refresh on android?

I am new in android, I need to ask this question. I build some android applications that implements the TabLayout, so every activity is held by every tab on my app. But before it, we should face the Login activity. My question is how can I Logout…
AdityaSetyadi
  • 161
  • 1
  • 2
  • 18
1
vote
1 answer

extends TabActivity not working in android

I am trying to create a tabbed application however, I'm finding problems when trying to run the application and the main class extends TabActivity. The Main Class code is the following: package org.practical.newsupdate; import…
xarababe
  • 49
  • 1
  • 9
1
vote
1 answer

Android webview disable zoom controls icons inside a tabactivity

I have a webview inside a tabacitivity and have enabled the zoomcontrols. However, whenever I got back to the non-webview tab, the +/- zoomcontrols is still displaying. Is there anyway to get rid of them or not make this happen? I have read a lot…
mooongcle
  • 3,987
  • 5
  • 33
  • 42
1
vote
2 answers

How can I access views in activities within a TabActivity?

I've got a TabActivity containing other activities intended to split up a form. The TabActivity has in its layout a button intended to collect the data from all the form-related views across all the activities contained within the TabActivity and…
1
vote
1 answer

TabActivity vs FragmentActivity

I wonder what is the advantage of using Fragments(the new version of ActivityGroup) As for now I can do the same with TabActivity. If I want to replace the fixed tabwidget I can set visibility to gone and to change tabActivites I can use…
Dayerman
  • 3,973
  • 6
  • 38
  • 54
1
vote
2 answers

activity loads xml from server before displaying using TabActivity

I am using a TabActivity with 4 separate Activities - one for each tab. One of the Activities is a ListView that has a custom ArrayAdapter. The issue is that when I press the Tab to change to this view, the Activity loads the content in before the…
craigk
  • 1,294
  • 2
  • 12
  • 25
1
vote
4 answers

Android Best way to pass values from Tabs to Main TabActivity

I have a TabActivity which loads 2 ListActivity in 2 Tabs. When I click on a list item in either of the ListActivity, I want to pass this value back to the TabActivity. What's the best way to do this? I'm thinking of using a BroadcastReceiver. Any…
Maurice
  • 6,413
  • 13
  • 51
  • 76
1
vote
1 answer

Custom Animations While Switching Tabs in TabActivity

Is there any way by which I can add custom animations during the switch over from one tab to another in a TabAcivity?
devanshu_kaushik
  • 929
  • 11
  • 30
1
vote
0 answers

Where is my error for add tab with a button?

I want to add a new tab with button.I'm not taking an error but my app has stopped in emulator.Where is my error?Thank you for your your all helps.Note:My English is bad so sorry.If you have not a code or an idea with about subject you don't write…
1
vote
0 answers

How to implement custom listview adapter in tabbed activity?

I am trying to implement the custom list view in tabbed activity for youtube video playing app. I could not able to call custom listview adapter in fragment java class. I have tried to pass getActivity() to custom adapter but the app crashes. If any…
1
vote
2 answers

android tabbed Activity list fragment

I am new to android, I have my TabActivity(Action bar tab) with some fragments. In first Tab, I have a list and I want to display the content of the selected list in the second tab when I switch over the second Tab. In my code when I selected the…
Narandhran Thangavel
  • 1,392
  • 1
  • 12
  • 20