tabactivity

calling listactiviy from tabactivity in android

Is it possible to call listactivity through tab activity? Basically, I am developing an app with 3 tabs, for which I am using tabactivity. Furthermore, in one of the tabs I want a listview, so I have derived from listactivity. Now I want the click event to be determined in the listview. Am i missing something? public class Tabissue ext...

How to display buttons above tab widget on Android?

I'm trying to add buttons above a tab-widget but they are always displayed under the tab-widget's tabs. The buttons are displayed on front layer so that they appear on each tab. Does anybody have an idea is it possible at all to display any widgets above the tab-widget? Here's an example layout to give some idea on the placement of th...

Updating views of sub Activities of TabActivity from background process.

I am using a TabActivity (Main) with 3 TabSpecs I am using Intents for the content of the 3 Tabs TabA, TabB, TabC for example. All these tab activities use common data that is stored in SharedPreferences In the Main TabActivity I have an options menu which has a refresh option. @Override public boolean onCreateOptionsMenu(Menu menu) {...

Nested TabActivities and Intent based Communication

I have 2 nested tabactivities - TopTabActivity and EmbeddedTabActivity. I want to pass some information from TopTab Activity to EmbeddedTabActivity when OnTabChanged Event is triggered in TopTabActivity. Both activities are initialized in the beginning of the appln. The problem is when I use Intent to pass the information from TopTabAct...

How to setResult() for a TabActivity which contains activity for tabs.

My TabActivity contains two tabs which calls two two different activities . I want to setResult() for the TabActivity when either one of the child finishes. Is there any method to find out when my activity inside tab finishes ? Thank you -Eby ...

Modifying application workflow to use TabActivity

Hi, This question actually has two parts. The first part: I've been developing my first app for a couple of weeks now. I have 5 screens and everything seems well. However, I'm considering changing the app's navigation to a TabView. I haven't delved much into it, but I'm hoping someone can save me a little bit of time. It seems that p...

Optionsmenu in an TabActivity for a specific Tab

Hello Folks! My problem is, that I have got a TabActivity, which has 4 Tabs right now. The first Tab is a special Details-Tab, where the user could modify some data. The problem is, that if I add a OptionsMenu for the Activity, that the OptionsMenu is appearing on every Tab. I tried to check the current mTabHost.getCurrentTabTag() in th...

Tab icon guidelines

http://developer.android.com/guide/practices/ui_guidelines/icon_design.html#tabstructure Are we sure this page was written correctly? It states that UNSELECTED icons must be "WHITE"; and SELECTED icons must be "GRAY". This seems backwards and looks quite odd in my application. ...

Tab Activity finished

I am writing the code for the tab activity but there is a problem that when i navigate from 1 tab to another tab then it does not finish the activity of the previous tab. suppose there are 3 tab A , B ,C by default it will goes to A when i am pressing B then it go there and when i press 3 it goes there. but when i press back button th...

Dynamically updating TabWidget icons?

Is it possible to update the TabWidget icons/indicators? If so, how, when you are creating TabContent through intents? Edits below with answer thanks to @Bart Generic code: MainActivity: public class TestActivity extends TabActivity { public int i; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa...

How do you stylize tabs in TabActivity?

How does one stylize tabs (tabhost/tabwidget)? The followding doesn't seem to work: <TabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TabWidget android:id="@android:id/tabs" android:layout_height="wrap_content" android:layout_width="fill_parent" style="@style/pro...

TabActivity and onKeyDown

I have created games with 3 tabs and one of the tab is the game using the onKeyDown (KEYCODE_DPAD_LEFT and KEYCODE_DPAD_RIGHT) to control the game. It is working fine if there is no tab. But now with the tab, the KEYCODE_DPAD_LEFT and KEYCODE_DPAD_RIGHT are actually controlling the tab movement instead of the game. May I know how to let...

ListView OnClickListener not working within TabActivity

I have a ListView and an ExpandableListView inside of a TabActivity. I have overridden the setOnItemClickListener for the ListView. I have 2 tabs and one uses the ListView and the other uses the ExpandableListView. For some reason I cannot click on any of the items in the first ListView. If I change tabs to the ExpandableListView and...

Android. How to change Activity within a Tab

Following situation: I have TabActivity with e.g. three tabs, TabA, TabB, TabC. There are a button in activity (Act_C_1) of TabC. So if the user clicks on that button, another activity (Act_C_2) should occur in TabC. I thank you in advance for any suggestions / or ideas. Mur UPD: Here is my code TabActivity with three Activities: ...

How to identify Tabhost tabs ID from another activity.

Hello, i have tabs in a TabActivity that is being populated by a listview from a method in another Activity. when i click on the listview in the tab, i am trying to delete an item in the listview from onContextItemSelected and let the tab in the tabhost callback the same method in the Activity that populated the listview. please does any...

Android: TabActivity - add no Tabs before AsyncTask has finished

I've got an TabActivity implementing TabContentFactory, which starts an AsyncTask in onCreate() to fetch the data for the tabs. When the AsyncTask has finished, onPostExecute() could directly update the UI-elements, right? Meaning, since that method runs in the UI-Thread no further thread-synchronization would be required when accessing ...