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
1 answer

Adding fragment on android TabFragment causes hang

This kind of question has been asked before, but I still can't get the hang of it so I ask again anyway I got a hang for several seconds (well not just several, it's about 10 seconds) when trying to add a new tab fragment to my activity which serves…
Karate_Dog
  • 1,265
  • 5
  • 20
  • 37
1
vote
2 answers

Move back to parent activity from child activity android

In my app, I have one tab which includes two activities say 1 and 2. Activity 1 extends ActivityGroup, which has one child activity say A. Now scenario becomes like this, In first tab --> Activity 1 and its child activity A. In second tab -->…
Looking Forward
  • 3,579
  • 8
  • 45
  • 65
1
vote
0 answers

Deliver intent for a tab activity to the main activity

I am writing a tab using SomeActivity extends TabActivity. Here is the main process: The main activity will call the SomeActivity. And the SomeActivity will put two activity (activityone and activitytwo) to the two tabs. Here is my question, when…
flexwang
  • 625
  • 6
  • 16
1
vote
1 answer

Can't set background for TabWidget android

I searched a lot but could not find specific solution for my problem. I am posting a screen shot where you can see a tab widget. Also there is an exclamation mark there don't know why! You can see on the right bottom corner there is Background set…
Vish
  • 341
  • 1
  • 4
  • 19
1
vote
0 answers

ViewPageIndicator Tabs - How to achieve the following style?

I'm using ViewPageIndicator to customize the looks of the tabs in my app but I'm really new to android so I don't really know to get exactly where I want to. Here's a gif that I made to show how I want it to behave:…
1
vote
1 answer

How to destroy the Activity on switching other Activity in TabActivity

I have 3 activity I want to destroy the earlier activity when i move to new activity in TabActivity TabHosttabHost = getTabHost(); Intent in1 = new Intent(this, ActivityA.class); // adding each tab details to tabhost …
1
vote
2 answers

how style tabactivity in android

Hi im trying to style my tabactivity im using this: public class TabContainer extends TabActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { …
alexistkd
  • 906
  • 2
  • 14
  • 34
1
vote
0 answers

How to change TabWidget's background color from XML in Android

I have come across this problem. I have a tab widget on top of the view, with four tabs in it. I have been asked to change the background color of the whole tab view area. Not for any tab, but the whole area of that tab view. I also been asked for…
Arthur Wang
  • 3,118
  • 4
  • 21
  • 29
1
vote
0 answers

Android How to get tab with icon and text in Android version 3.0 plus

I am working on Android Tabs with sdk minimum version API 11 and target is API 17. I have written code like this. public class MainScreenActivity extends TabActivity{ @Override protected void onCreate(Bundle savedInstanceState) { …
1
vote
2 answers

Wifi Settings tab is not working in Android (4.1) devices

I have two tabs in a activity. When I run the app with both tabs, it's showing force close error. When I run the same app by commenting tabHost.addTab(spec) line for wifisettings tab, timeclock settings tab is opening. But I need to open both the…
kumar Sudheer
  • 705
  • 3
  • 8
  • 28
1
vote
3 answers

Prevent softkeyboard appear from other activity

I got a EditText on my first tab. Of course, soft keyboard appearing when I touch on my EditText. But when I access to second tab, it means second tab activity, soft keyboard stay appearing on my first tab and don't disappear even though there is no…
edisonthk
  • 1,403
  • 16
  • 35
1
vote
0 answers

Design an App which is smartphone and tablet compatible

My application consists of tabs using Tabhost and Activity group. It is working well for now. However, I am told to extend the app to support tablet. The current app seems to work in tablet, with less space utilization. I am told to use split views…
1
vote
0 answers

Getting TabSpec id from activity

I'm using a tabhost in my Android application that contains 4 tabs. I'm navigating to the same activity from all these 4 tabs. So I need to distinguish between those 4 tabs. How to get the tag (specified while creating tabspec) from the called…
akh
  • 2,478
  • 3
  • 23
  • 23
1
vote
0 answers

Android: how to create new instance of childactivity from SingleTask TabActivity's onNewIntent?

I have following flow in normal situation H (homeactivity) - T(TabActivity)- L (Activity class containing list) - D (DescriptionActivity) If pushnotification comes it will traverse to D without any click (refreshing associated data for each…
Ronny
  • 11
  • 2
1
vote
0 answers

How to attach activity in Sherlock Tab?

I have a activity that will have 3 fragments. I want to add this activity into sherlock Tab. Actually I will have 3 Tabs and each tab will have 3 fragments. So I thought to add activity into tab that activity will hold 3 fragments. In sherlock…