android-tabhost Questions

3

I'm trying to store the index of the currently selected tab in onSaveInstanceState so I can restore it. However the getCurrentTab apparantely gives me back the String I used in the etTabHost().newT...
Luncheon asked 27/8, 2010 at 10:45

2

Solved

In the new Design guidelines (scroll down to the bottom) you can see how tabs should look in the new Material design. TabHost however still looks very Holo to me, with no bottom line animation and ...

3

Solved

I have a MainActivity (FragmentActivity) that has a FragmentTabHost. public class FragmentTabs extends FragmentActivity { private FragmentTabHost mTabHost; @Override protected void onCreate(Bu...

3

Solved

I want to draw the number badge as shown in the above image on the Chats tab. That number badge shows number of new unread messages in chat. So how can I draw this kind of custom number badge. Is...
Emigrate asked 18/5, 2011 at 12:43

6

Solved

I have a TabHost with two child activities in it (in two tabs). I also implemented a public function in one of these activities that i would like to call from my parent (TabHost), to trigger some a...
Verge asked 22/3, 2011 at 23:53

2

Solved

I'm trying to get my app to change from tab 1 to tab 3. The tabs are in a custom TabsPagerAdapter which extends FragmentPagerAdapter. I've tried to change the tab likes this but it causes NullPoin...

4

Solved

I'm trying to do a simple tab app in android with two tabs. My problem is that when I put this code, in the tab, only is shown the text, but no the icons. If I put the text to "" the icon is shown...

1

Solved

I want to create an Android tab view to look like this image: I guess there are many ways to Rome, but I think I still haven't found the ideal one. My idea was to cut out a divider and an active ...
Kinesiology asked 9/4, 2014 at 8:48

3

Solved

I am working on an Android App and I have used android FragmentPager tabs example from developer.android.com), this example uses fragments for tabs contents, Now I want to place a tabHost inside on...
Changeup asked 31/12, 2011 at 13:19

4

Solved

Where should I start an AnimationDrawable that needs to animate when the activity is shown? The developer guide recommends using onWindowFocusChanged, but this isn't always called when the activit...
Logical asked 19/7, 2010 at 18:56

4

Solved

I have a TabHost with two tabs in it. The first time I switch to the second tab the onResume() method of my second's tab's activity invoked. Then I have an AlertDialog shown and after it disappears...
Natiha asked 11/4, 2011 at 12:54

4

Solved

I have a tabhost with three tabs. Each is an activity. I would like to have a button which is in the action bar, the bar along the top with common buttons, call functions of the tab which is active...
Hie asked 16/3, 2011 at 0:24

2

Solved

I have a very simple app which is just an activity with a tab view on it. I have initialised and casted everything to as it should be but am continually getting a null pointer error which always l...
Upanddown asked 24/1, 2014 at 2:50

1

I have an activity that uses a TabHost associated with ViewPager. Although it works fine, I decided to replace it with FragmentTabHost. However, after making some changes, I am getting a rendering ...
Papery asked 12/7, 2013 at 14:48

3

Solved

In Android can I implement swipe between tabs functionality using tab-host. Is it possible to use this functionality without fragments. When we are targeting older android versions how can we imple...
Rounders asked 9/12, 2013 at 6:20

3

Solved

I'm trying to put a FragmentTabHost at the bottom of the screen. Time ago, I was able to do that with regular TabHost (following this thread), but now this is not working for me. Is there a way t...
Siddon asked 16/11, 2012 at 0:36

1

Solved

I have one main activity which is fragment activity here I am setting two tabs with two fragments A and B in the B fragment I have one button when the user click on the button I want to change frag...

9

Solved

Does anybody know of a website where I can find Android TabHost icons? (free or paid)
Bibliomancy asked 22/6, 2010 at 17:14

3

Solved

My application needs to update tab indicator dynamically, I'm trying to do this by invoke TabSpec.setIndicator(), but it doesn't work. Here is my code: In onCreate method of TabActivity: tabHost ...
Goren asked 29/5, 2010 at 16:26

3

Solved

I am trying to access library activity into another project(In tabhost and each tab call different activity.) but its throwing exception Caused by: android.content.ActivityNotFoundException: Unab...

2

Solved

I want to create custom tabhost for browser like tabs. I am confused about how to apply it for a layout like in chrome browser tab as in the image. Here is what I have tried. I want to know how ...
Bollard asked 16/4, 2013 at 13:35

5

I have a problem with one of my WebView on Android 4.x devices. Android app has a Tabhost which contains Fragments. One of the fragments contains a webview. The displayed page has a dropdown menu...
Maneater asked 19/11, 2012 at 13:52

4

Greetings, I am trying to get the Click - event when clicking on the currently selected tab of my TabActivity. The onTabChangedHandler is only called whenever the tab is changed, not if the curren...
Martian asked 30/6, 2009 at 8:42

1

I have Main Activity which contains a TabHost. In the TabHost I have several TabSpec which use an Intent for the content of the tab. At certain points in my code I need to remove a tab from the Ta...
Redundant asked 10/9, 2012 at 19:52

1

Solved

I'm having trouble getting a pointer to a Fragment which is the currently visible fragment in a FragmentTabhost. I have a SherlockFragmentActivity called SecondActivity that loads the Tabhost from...

© 2022 - 2024 — McMap. All rights reserved.