I'm using ActionBarSherlock and I want to insert a custom layout like Youtube application.
Here are the screenshots, what I want is green bordered as you understand. As far as I know Google is using native ActionBar, but I want to learn if it is possible using ActionBarSherlock and also, only if it is possible using ActionBar, how can I do this?
...
No you cannot do this with the native or ActionBarSherlock tabs. You should use one of the below great libraries. They are easy to use and you can get the above look very easily.
http://viewpagerindicator.com/
or
https://github.com/astuetz/PagerSlidingTabStrip
Related
How Do I make deafult ICS style tabs in android 2.2. I don't want to use ActionBarSherlock, instead I need to apply custom drawables. Can someone help ?
I tried using 9.png but didn't help much, as it didn't fill the complete tab, instead it shows only some blurred extended background. If you are suggesting some drawables - Please provide the drawable as well.
You can download ready made demo from this link: ICSStyleTab. I tried it for one of the project and it is working fine. If you wanted to add pager functionality, you can easily add using FragmentPager from Support V4 Library.
Update: ICSStyle Tab With Pager Demo
Thanks.
HoloEverywhere is a library to provide ICS/Holo theme to pre-3.0 devices:
https://github.com/Prototik/HoloEverywhere
Even if you really want to write your own code, you can gain a great deal of insight simply by looking into its source.
I am new in Android Development. and going to create a new app. in which i need following type of navigation in Android 2.2 and above.
http://i.stack.imgur.com/wwG1Z.png
I saw a tutorial at http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
But he is Only Swiping Pages. There are no Tabs like In Above image. And also he is updating some text view but i want to switch between activities or layouts.
I have tried many things. ActionBarSherlock it created many errors.
The thing I need is
developer.android.com/training/implementing-navigation/index.html
developer.android.com/shareables/training/EffectiveNavigation.zip
In Above file CollectionDemoActivity is the thing Which I actually looking for Android 2.2 and above.
If someone have project like this please share code.
This is a sample project for using ActionBarSherlock with a ViewPager to have tabs & swipe together. It works, I've used it.
You might want to check out Jake Wharton's other project, Viewpagerindicator. It provides the functionality that you are after. And here is a tutorial for using them together. There are also some excellent guides over at Styling Android.
I want to make a UI like this http://d.pr/i/ZQxO but I don't think so that android ActionBar component has the provision to add menu layout like this. What can be the possible workaround for this? Thanks.
You can do it with simple option menus. Have look on official samples or even better do it breadcrumb
I would like to know which will be the best method to create custom tabs in Android 2.2. something like this.
I know about the TabHost but not satisfied with its UI. I would like to create my own tab UI in 2.2 like shown in the above pic. Please suggest me the best and easy method to do this.
Create a custom view for your tab complete with state lists drawables and more!
Best tutorial for you:
http://joshclemm.com/blog/?p=136
And this is a example code:
http://code.google.com/p/android-custom-tabs/
ActionBarSherlock has tab feature. You can download Demos Sample from here and look at Tab Navigation Sample. I think you can find it useful.
I am creating an app where i would like to use both the drop down list navigation and tab navigation on an actionbar. But i can not figure out how to do this without implementing the actionbar as a custom view which would mess up a lot of the nice built in features.
So what is the best way to get both of these navigation modes at the same time?
Android will not build both of these for you. You can use the ViewPagerIndicator library to make an emulated tab bar for a ViewPager, which is probably the easiest way to do this.