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

how to disable the tabs in tablayout from a tabspec activity

i have a tabActivity from that i set activities as content of tabs. from an activity i try to disable the tabhost. how to achieve this. public class Main extends TabActivity { public static final File sdcard =…
ajaylouis
  • 247
  • 1
  • 4
  • 18
0
votes
1 answer

NullPointerException when using listview within tabs

I'm trying to implement a listview within a tab. There i'm using a custom arrayadapter to create a custom listview. Code is as follows. Creating the tab activity : TabHost th = getTabHost(); TabSpec specGroups = th.newTabSpec("Groups"); …
0
votes
2 answers

android Not able to switch from One tab to another

I want to switch from one Tab to another tab. For that i am using below code: public void switchTabInActivity(int indexTabToSwitchTo){ AccidentTabActivity ParentActivity; ParentActivity = (AccidentTabActivity) getParent(); // here i am…
Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188
0
votes
2 answers

Separated Back Stacks for Tabs with Fragments in Android

Since Tab Activity is deprecated I'm trying to implement tabs with fragments. As you can see in the lots of StackOverFlow questions back stack is an issue when you work with fragments and which has its own back stack. So the thing I'm trying to do…
0
votes
1 answer

onBackpressed isn't working with listview

I am working on android Version 8 and my emulator 2.2 I have tabview with Activity group, and multi childs and they are all listview but one is Activity the onbackPressed method is not working for the List Activity I have searcged and i found…
omnia Mm
  • 157
  • 5
  • 16
0
votes
2 answers

Error Loading Json Data from AsyncTask in TabActivity

In my application I have created a TabView and I am using AsyncTask to load JSON data. I am using onTabChangedListner(), when clicking on a perticular tab the AsyncTask runs and loads the JSON data. When I click on that perticular tab then I end up…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
1 answer

How to use AsyncTask with TabActivity in Android

I am trying to create a dummy project to test AsyncTask with TabActivty. Firstly i have created a login screen, after login the tabview screen comes up.. in the tab view screen there are five tabs. the thing that I am trying to do is that when I…
Abhishek Dhiman
  • 1,631
  • 6
  • 25
  • 38
0
votes
3 answers

keyboard lifts tabview above

In my app, when I click on EditText keyboard lifts the TabView above. I have used this android:windowSoftInputMode="stateVisible|adjustResize" in Android manifest file. I am using activity group. So I used this in both activity and activity group.…
suprita
  • 211
  • 1
  • 9
0
votes
1 answer

Android- Calling Specific Method from ListAcitivity which invokes method in 1 of the TabActivity w/o losing TabHost

Calling Specific Method from ListActivity which invokes method in one of the Parent(TabActivity) w/o Losing TabHost Layout I have Two Activity Inside TabHost 1.PlayingActivity 2.AlbumActivity By Clicking Button inside AlbumActivty will jump to…
0
votes
0 answers

Android: TabActivity/TabHost with ActivityGroup : Error occurs when creating PreferenceActivity Dialog and Dialog from click button on Custom Listview

I implement a TabActivity (TabHost) with ActivityGroup based on this website http://ericharlow.blogspot.com/2010/09/experience-multiple-android-activities.html I have 2 questions about implement this. First question, Using TabActivity with…
0
votes
1 answer

Pass bundled data from Tabbed activity to a tab Activity after said data is received from a third activity

I have a Tabbed Activity, which contains three tabs, which are initialized as follows: TabHost tabHost = getTabHost(); TabSpec porabaspec = tabHost.newTabSpec("Tab1"); porabaspec.setIndicator("Tab 1",…
0
votes
1 answer

How to hide tab icons in landscape mode?

Tabs take too much height when in landscape mode, I think it will be much better if I can hide icons.
JSPDeveloper01
  • 770
  • 2
  • 10
  • 25
0
votes
1 answer

How to display the activity into full screen and vice versa on tapping the activity?

In my application, i am using Tabhost and I have placed the webview inside tab host to show the contents.When the user taps the screen the contents should be displayed in fullscreen and vice versa but this is not happening.How to acheive this?Please…
0
votes
1 answer

Hide a xml component from an inflated layout

Does anybody know how to hide a component from an inflated layout? I have the following code: View tabLayout = LayoutInflater.from(this).inflate(R.layout.tab_layout, null); FrameLayout profile_tab_selected_indicator = …
0
votes
2 answers

How to deal with tabs as views?

I've created tabs as views. But I didn't find any info on how to manipulate theses views. For example if I want to display a listview in one and a form (tablelayout) in another. Can I have separate layouts for each tab? And more importantly where do…
Harsh
  • 487
  • 3
  • 9
  • 29