how to hide tabs when using actionbarsherlock? - android

When using actionbarsherlock, when there are a lot of tabs how to hide other tabs and only show three or four tabs and when I slide the tabs I can see the tabs hidden?
thanks~

Despite your short description of the problem, I guess the following link should give you the answer:
SwipeyTabs - how to create Swipey Tabs using ActionBarSherlock Library?
If that does not help, please try to rephrase your question after reading this:
http://developer.android.com/design/patterns/actionbar.html

Related

Make Tabbed Layout with Custom ActionBar?

I am trying to make custom profile page , Tabbed layout is embed within ActionBar , and Tabs can change both with sliding and click on other tab.
I just started playing with ActionBar , and didn't understood what are major differences between Sherlock / simple ActionBar.
Here is what i am trying to make right now:
Any Help in any form appreciated , There is no similar Github lib or helper code at net/SO , so i can't figure out how i should get started
You will need to use a TabLayout along with a ViewPager. These are standard controls. Google it or see here for an example of how to use it. ActionBarSherlock isn't used anymore. Instead we use a Toolbar.

Icon Tabs as main navigation in app bar

How would I go about implementing swipeable icon tabs as the main navigation in an app? Heres a screenie of the popular Flipboard app, which demonstrates what im looking for: http://prntscr.com/83607c
I have been looking for an answer to this question for almost a week now, and have asked on several communites yet no one seems to be able to answer how to go about doing something like this. I'm assuming its a ViewPager for the swipeable part, but the only thing I can think of for the tabs would be a TabLayout, but this implements tabs "below" the toolbar, eg: http://prntscr.com/83674c which is not what i'm looking for.
Google recently released Support Design library. Witch contains all the necessary views. You can read more here
The views you are interested:
TabLayout and
TabLayouts.Tab

Flickr-like Android ActionBar

I have been doing a small research on UI designs for Android for the last few weeks. My main concern right now is the action bar along with tabs. I believe the default android implementation takes to much room on the screen.
Recently I took a look at the Flickr app and I really like how they do this but I am not sure how to implement tabs this smoothly inside the action bar itself.
All help / ideas are appreciated.
Thanks in advance.
Screenshot of the action bar can be found here:
https://dl.dropboxusercontent.com/u/242865/Screenshot_2014-11-11-11-04-05.png
Check out this library on github.
It's an Android Library to help you create actionbar tabs like Capitaine train app by Cyril Mottier.
You have to set a customview in your actionbar and use something like ViewPagerIndicator
http://viewpagerindicator.com/
To setup a custom view in your actionbar just use setCustomView but remember to enable the display of custom view first.
Take a look at this
http://www.jfarrell.net/2013/10/customizing-action-bar-in-android.html

Android: Swipey tabs without Action Bar

I've created a ViewPager. and I want to add scrollable tabs (swipey tabs) to make it more flexible (like google play).
and all the tutorials that i found using ActionBar.
How can i do it without using ActionBar?
PagerTabStrip and the tab flavor of ViewPagerIndicator should both give you swipey tabs.
This link will be helpful to you and you achieve that by following the example explained in the tutorial.
Or
You can search for SupportV4Demos in Samples and you can find the example FragmentTabs and Pager example to achieve that.

Navigation Tabs

I am writing one application where i want to follow latest design guidlines for android. And now i want to use TABS as in 4.0 there is not recommended to use TabWidgets anymore and it is recommended to use Navigation Tabs i checked this http://developer.android.com/guide/topics/ui/actionbar.html - At navigation tabs
But i dont realy understand how i am able to do this. Dont know where to include this ActionBar.TabListener etc. Are there any more detailed tutorials for this or does anyone here have any detailed code.
Thank you!
Here is a good example of using Action Bar:
http://www.java2s.com/Code/Android/UI/Usingactionbartabsandhowtheyinteractwithotheractionbarfeatures.htm
Also some good examples here:
Actionbarsherlock + tabs + multi fragments?
Check this ActionBarSharelock and the same thing on Github.

Categories

Resources