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
3
votes
2 answers

Android activity dims, looses focus and freezes - no error messages and works after first run

So this is the problem: The activity starts - and in onResume() does some work in a background thread which populates a listview. This is being done whilst a progress dialog is shown as per the following images: That work completes - and the…
RenegadeAndy
  • 5,440
  • 18
  • 70
  • 130
2
votes
1 answer

How to use the TabActivity Menu without interference with the children tabs

This topic can look similar to others but I haven't found any usable answer for this case. Here is what I want : I have a TabActivity with a menu, containing tabs without any menu. When I press the menu button, I want the only existing menu to be…
fripon
  • 101
  • 10
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

How to slide the tab contents (of TabActivity) with finger movement like in "Home", "News & Weather app"?

I have a tab activity with three tabs. I need the sliding animation with the finger movement that does like in Home or "News & Weather" app. With the help of documentation and forum, I could manage to animate the tab contents in some extent but not…
2
votes
1 answer

Android - How to change Activities within a TabActivity?

I currently have a TabActivity which has 4 tabs, within one of the tab's I want to be able to move forward and back between 4 different Activities. However if I try to start a new Activity now it removes the TabActivty and starts a whole new…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
2
votes
1 answer

Using OnItemClickListener on ListView inside TabActivity

I am having a silly problem with a OnItemCliskListener for my ListView. It works well when the XML is very simple but after I improve its complexity, the OnItemCliskListener stop working In other words, I have a ListView with just a TextView. But if…
2
votes
1 answer

Android - tabbedActivity with dynamic number of tabs

I'm creating an app which (according to chosen mode) has to have 2 or 3 tabs in a tabbed activity. When I choose the mode with three tabs, everything's fine, but mode requiring 2 tabs throws this exception: java.lang.IllegalStateException: The…
Antek
  • 721
  • 1
  • 4
  • 27
2
votes
2 answers

Fixed Tab inside fixed tab in Android

i want add tabs inside tab like below: ---------------------- |Tab 1 | Tab 2 | tab 3 | ----------------------- | Sub tab 1 | Sub tab 2| ---------------------- Each Parent tab has two sub tab. I am using fragment to display Parent tab(Action Bar…
2
votes
1 answer

Android tab listener keeping 2 tabs alive in background

I have a tab activty in my application, here is some simplified code: @SuppressLint("NewApi") public class Rhino68PanelActivity extends FragmentActivity implements ActionBar.TabListener { static String TAG = "Rhino68PanelActivty"; /** * The…
Zapnologica
  • 22,170
  • 44
  • 158
  • 253
2
votes
1 answer

Dynamic Tab generation with dynamic Content

I have project in which i want to create tab view in which all tab generated from json depend upon json. and content of tab view is list view and again listview data come from json. here i am providing my json file “checks”{“check”:{ …
2
votes
0 answers

Image is not being displayed in child activity

Here, I have to select an image from gallery or camera. When user selects image from gallery, that selected image should be displayed to next activity. But here these both activities are under the same tab, say tab A. Means in tab A there are two…
Looking Forward
  • 3,579
  • 8
  • 45
  • 65
2
votes
1 answer

Scheduled Task in Fragment returns getActivity as null

I know similar type of question is asked before. Sorry to ask again. I have a fragment in a tab FragmentActivity. Within the fragment in onActivityCreated, I have to schedule a task after every fix interval. Timer t = new…
2
votes
1 answer

I want to get my tabs scrollable, but it does not work when using a FragmentTabHost

I am trying to get my scrollable tab to work (a scrolling tab like the menu in Google Play). I am using android.support.v4.app.FragmentTabHost as the tab host and android.support.v4.app.Fragment as fragments. Everything works except that the tab…
Rox
  • 2,647
  • 15
  • 50
  • 85
2
votes
1 answer

How to integrate tab host with zxing qr code scanner?

I want to integrate zxing qr code scanner in my application which is having three tabs in my application. Currently when my one of the tab bar butto gets pressed at that time I am calling zxing qr code's scann activity but when ever its calling it…
2
votes
0 answers

Disable TabBar for specific Tab when keyboard is up

I need to disable showing the tab bar above keyboard when its up for only specific tab. I've searched and tried several ways: android:windowSoftInputMode="stateVisible|adjustResize|adjustPan" works but for all tabs. I need only for one tab The only…
Udi Oshi
  • 6,787
  • 7
  • 47
  • 65
1 2
3
17 18