android-tabhost Questions

7

Solved

I have implemented a TabActivity which extends FragmentActivity. It has 5 tabs each tab is a Fragment. What i am looking for is to switch between the tabs programmatically. For eg: if i am in tab4...
Porscheporsena asked 1/5, 2013 at 8:51

7

Solved

I'm trying to learn how to use Fragments in android. I'm trying to remove old fragment when new fragment is calling in android.
Irreproachable asked 18/3, 2014 at 9:4

7

Solved

I need a little help with refreshing one of my activities in my application. I'm using tab host activity and connecting to web service and downloading some data from one of my child activities. Whe...
Claustrophobia asked 23/11, 2011 at 10:53

3

Solved

I'm going to create an application which is designed to use Tabhost, but as I know it's been deprecated. So my question is should I use Tabhost anyway or how can I replace it..by using buttons inst...
Definitely asked 24/4, 2012 at 11:52

6

Solved

The structure of the app is like this: tabHost (in Activity) -> contains -> TabFragment(extend base container fragment) 1. The code in Activity: tabHost.addTab( tabHost.newTabSpec("home"...

5

Solved

I want to act my tabs to have different windowSoftInputMode properties for each tab. How to access this property from java class when all handling of your tab is done from one single activity? Is ...
Unchristian asked 26/5, 2011 at 12:17

3

Solved

I want to achieve this: What I thought was to make a Custom Toolbar with a bigger height and work with the tabhost and tabpager normally. I have implemented it, but the toolbar is showing the no...

2

Solved

I'm working on an Android App and I want to use 3 tabs for navigation using Fragments for each tab, but I don't know how to create the structure for doing it. I want to add each fragment separatel...

4

I have created an app with 3 tabs. The app works fine but I want the 2nd tab to be selected and loaded when the app opens. How can I set that? Here is my code : public void onCreate(Bundle savedI...
Unexpressive asked 18/4, 2013 at 6:2

4

I have an Activity defined by: <LinearLayout android:id="@+id/TabContainer" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="99" android:orie...

5

Solved

I'm building an Android app for which I'd like my first activity to be composed of 2 tabs, one for the user's profile, and one for the friends' activity. For these tabs, I opted for a TabHost since...
Vend asked 3/4, 2013 at 9:52

9

Solved

I am trying to find way to be able to fire an onclick event on a tab when this tab is the current tab. I did try this way (among several other) with no success thou. public void onTabChanged(Stri...
Dung asked 2/12, 2010 at 16:48

4

Solved

I have a weird issue with my Tab (TabHost or TabContent) in my Fragment that contains a ViewPager. The problem is that when I change the page, then I turn back to the fragment with tab and viewPag...
Farah asked 26/11, 2014 at 6:42

2

Solved

I've gone through many examples, questions and tutorials but I've never seen an activity launch (launch a new intent) with a specific tab. I know that one can use .setCurrentTab to switch to a tab,...

2

Solved

In my Android application I have had to use a tab layout and I want to choose a one from folowing scenarios. they are using viewPager using tab host what are the advantages of viewPager over t...
Morrismorrison asked 9/12, 2013 at 10:55

4

I have a MainActivity that has three fragments in a FragmentPagerAdapter as below. How can I find out when an user goes from 1st fragment to second or from second to third, either with swiping or w...

5

Solved

I have a problem: Java Code public class VisualizzaListaActivity extends TabActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) ...
Obtuse asked 16/12, 2011 at 18:20

2

Solved

I have looked at posts on Stack Overflow and at tutorials on other websites, and I cannot understand how to use TabHost. Can someone please explain it to me and maybe send me a link to a tutorial? ...
Crapshooter asked 24/7, 2012 at 0:35

4

Solved

I'm trying to use the new TabLayout in the android design library to create app bar with icons. public void setupTabLayout(TabLayout tabLayout) { tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);...
Vitiated asked 3/6, 2015 at 8:6

5

Solved

I've implemented nested tabs with view pager with no problems, but my problem is on the swiping part, When I do the swiping action the main activity tabs will be switched, but I want the fragment ...

5

Solved

I tried to make oval shape tabhost as expected below shape. I tried the below codes. public class AndroidTabLayoutActivity extends TabActivity { TabHost tabHost; @Override public void onCr...

7

Solved

my onActivityResult method is never called. am using android 2.2 I am using a Tabhost, where TabHosts contain TabGroups which contain individual Activities. One of my individual activity runs the...
Bracken asked 18/10, 2011 at 18:47

2

Solved

I am new on android development, and i was currently creating an application using tabhost and a TabActivity to switch between different activities. This application was working fine, but I recentl...
Weigand asked 20/4, 2012 at 4:11

4

I have been struggling with this for a few days now. I'm trying to switch tabs programmatically upon a button click. My program works flawlessly if I just use the tabs to change activities, but wir...
Lush asked 23/12, 2010 at 21:2

3

I have a little problem when I open keyboard in my application. I have a tab bar which is on bottom of page and in some situations, not always when I click on edit text and keyboard shows up, it's ...
Autum asked 16/1, 2012 at 14:23

© 2022 - 2024 — McMap. All rights reserved.