ActionBarSherlock Tab, ViewPager and MultiFragments like Foursquare - android

I want to create an ActionBarSherlock with tab navigation and ViewPager like Foursquare. I'm using the code located in this page. What I want is in the first tab (Friends tab in printscreen), I want to create new Fragment from main Fragment. Briefly, in Foursquare, Friends tab has a timeline that shows check-ins of your friends and if you click a check-in row, it goes to detail of this check-in. My desire is the same as Foursquare did. How can I manage this operation (creating new window -Fragment or Activity-) using ActionBarSherlock with tab navigation and ViewPager?

I have the same problem, that´s the menu I want to create with two bars but, for the moment, I can´t.
I found this article in Android developers forum http://developer.android.com/design/patterns/actionbar.html they talk about different Action Bars under the title Layout Considerations for Split Action Bars:
The top would be the Main action bar. In your example: foursqare, refresh and set place
Top bar: for the tabs. Friends, explore, me
Bottom bar: at the bottom of the screen
I don´t if someone solved your problem if so please tell me if you used this
Thanks

Related

Android Airbnb like Tabs

I am trying to figure out how airbnb has implemented its Tab Bar, it either seems they have hidden their actionbar and everything has been shifted onto a tab bar but then the right most user icon opens the navigation drawer which should be ideally on actionbar, Or everything is on action bar itself but then how can those 3 tabs/icons on left be implemented on actionbar. (Kindly refer attached image)
Can somebody put some light on how this can be implemented. How to go about it? Also are those 3 icons fragments or separate activities?
Here, is a library which makes your life simpler to implement TabBarView for actionbar tabs.
https://github.com/Mirkoddd/TabBarView
This should give you insight about how to use it for your app.

Top tabs, bottom tabs and action bar tabs in android

I am developing an android application which is the android version of existing iphone app.
In iPhone app, there are five bottom tabs (As iOS support these). Every tab has more than one activities.
For example:
Tab 1: It has activity 1 which starts activity 2 and so on with in the single tab (Tab 1) and also back navigation too.
I have already read following but still have doubts.
http://developer.android.com/design/patterns/pure-android.html
http://developer.android.com/design/patterns/actionbar.html
http://developer.android.com/guide/topics/ui/actionbar.html
My questions are:
1) What is the best replacement of such kind of tabs in android. If I use action bar tabs then It will the right approach?
2) If I use action bar tabs, then is it possible to start different activities with in the single tab and action bar back navigation too?
3) When I should use Action bar tabs, Top tabs or bottom tabs in android (Tab Host still not deprecated in the Android)
Please guide me. I am very confused about tabs in android.
1) You can use Navigation Tabs! (and With that probably you'll use Fragmnets and not Activity)
2) Of course, the Navigation Up is really an usefull thing
3) Bottom tabs is possible with a Custom Layout.. I think it's not best thing, but you can do it!
It's a very short anwser but you can check everything in developer training and checkin samples that you find in your SDK

How to make main page with tab bar and some menu items in it?

I'm trying to create an app, which consists of a login Screen and after the validation of credentials forwarding to Home Screen Activity.
In that Activity, I want to place a tab bar (e.g. Home, User etc) and on a selected item to show some menu items (e.g #Home, "What's New", "Products", "About Us").
I'm stuck at coding that main page with tab bar (which I can) but, I don't know what control/object should I add and code. Any kind of help could be an improvement for me.
For creating Attractive Tab / action menu items, you can try action bar sherlock library that nice to create Action bar and tab also.
Here is a Link for that, it comes with demo example

create app with menu at the bottom (like many iphone apps), how to organize activity / fragments

I want to create a app with a menu at the bottom of the screen. This menu should be visible any time the app is started.
Im working with fragments, so the menu is one fragment.
So I have only one Activity as controller which loads different fragments above the menu fragment.
Because I want to create clean code, i dont know how to solve the problem that the Activity class is too big.
In other words, i want to create different controller within the same activity. How to do that?
Is there another approach to solve this issue?
You should be using the split action bar This allows you to put the Actions and overflow menu on the bottom of the screen. I believe you can use Action Bar Sherlock for backwards compatibility to older versions of Android. See their site for detail.
Another possibility is to look into using fragments with the ViewPager . Here is a library that works with compatability as well ViewPageIndicator . Here is a blog post , like I indicated in my comment I got this working with the tabs showing at the bottom and the pages above.

Android Honeycomb - Tab

Previously I wanted to use Tabs on top of the page using TabActivity.
As I am working with Honeycomb I used Action Bar Tabs. That worked best for me.
Now, I want to use tab to on Login page, so that user can Log in two diff ways. For this, I thought I will put Tabs at the top of Login layout (center of the page and not top of the page).
Can I do that ? How?
you can have a tabhost with multiple views and even multiple activities in each tab.
Here is a tutorial : http://joshclemm.com/blog/?p=59
The tab host doesn't have to occupy the whole screen you can have something else on top, I sometime put a textview with the title.

Categories

Resources