I am done with adding Action Bar and swipe able Tabs but now I want to add a fragment above the tabs which occupies good amount of screen and contains an image some text details and a spinner/drop down list as well. How can I do that?
I could not find any method for doing this. Some conflicts arise if i try to add something above the tabs.
Any help will be appreciated. Thank You
Download this example and modify according to your requirement
https://github.com/AsadSoomro/SlidingTabs/
Related
I want to create single activity having swipable image slider and swipable tabs. But i dont have an idea how to create this. I tried ViewPager is used for full screen swipe to get next full screen. Can any body tell me how to do that.
See image which demonstrates my need. Thanks in advance :)
I'm not sure I understand the question exactly, but I think there is an official Android sample that does exactly that:
https://github.com/googlesamples/android-SlidingTabsColors/
This is at least a reasonable starting point..
I need to implement iphone like tab in android. Which means, if there are more than 5 tabs are there the 5th tab text must show "more"? How can I implement this? Is it possible to do so in Android? Please help me. Thanks in advance
As far as I know, it's not possible. You can however implement a scrollbar for the tab widget, so if you have more than a number of tabs and they don't fit the screen, it won't show a 'More' tab, but you can scroll to the rest. For more info about this, check this link.
I totally agree with #yugidroid but sometimes it's hard to explain this to designer :) So you will need to implement that attitude of tabs by yourself, it is possible though.
You can check out my repository on github to have an idea where to begin. You can do it by modifying that actually...
You can add this to your activity:
tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
After adding this you can have how many tabs you want.
Does any one know how to create horizontal tabs with all the tabs being loaded in the same page, i.e. when each tab is select it should be loaded in the same page without cal several activities can it be done in within a single activity use & the horizontal tabs list should not be disturbed in any case when any of the tabs are selected, friends i am need your help in this part if anybody has a code please do share,thanks in advance.
I'm not really sure if I understand you right,but here is a link to TabWidget demo which you can use to create horizontal tabs.And about the other part of your question you can use ActivityManager for this purpose.Hope it helps.
If this answer don't quit to your question, please provide some more details or examples.
Whats the best way to add many tabs to the tadwidget? I need to add at least 7 tabs, and I dont want them to look too tight. Is there some other component to do this?
Add as many Tabs as you want to the tab widget
Change the tabWidget's Visibility to GONE
Now Implement your nice component to select a page
Every time this nice component changes the selection call:
tabHost.setCurrentTab(the_page_index);
I have a tab bar in my application. In this I have three tabs. It will call three activities. In activities I have the list view. If I click the list view, it will call different activities other than tab activities. Can anybody tell me how to display the tab bar for other activities and give an example?
Thanks in advance
First, do the tutorial. Then, if you are still having problems, ask more specific questions.
Good Luck
https://github.com/yifanz/Android-Custom-Tabs/downloads
hope this will help you. making iphone like tab bar for android...