Basically, right now I have an Android app that has four tabs on the top. One of the tabs is 'Settings', but instead of it being on of four tabs I have, I want it to be inside another tab called 'Demos,' so when someone clicks the 'Demos' tab, they can click a button to open the 'Settings' page and in the future any other activity tabs I want. A screenshot is below of what the iOS equivalent is if what I wrote is confusing. Thanks.
Related
In my Android app I'm using TabHost to work on some tab functionality. tab works fine. but in my app each tab contains several icons related to activities and when each activity starts it take over the whole screen. instead I want to show tabs when all the activities are running.
for instance take following screen as my tab view.
and when I click on the icon the second screen is as follow.
in there I can't see the tabs and in my case I wanna be able to see the tabs in the second activity too.
how can I implement this. can I use Fragments in this. Thanks and regards.
I am using the SlidingTabLayout.java and SlidingTabStrip.java classes to implement a tab navigation inside my app like described here.
Everything works fine and I really love this two classes. But I would like to center the selected tab (whether navigated through slide or click on the tab) to be in the middle of tab navigation. Right now it is always on the left side (except when you reach the end of the tab navigation than it is right). Also when you click on a tab the navigation scrolls back to the current tab and scrolls then to the tab you just selected. Is there anyway to stop this scrolling and just to center the clicked tab?
Using the method
slidingTabLayout.setDistributeEvenly(true);
does not do the trick.
I tried to read through the code and find a good starting point but I did not succeed. Does anyone know how to achieve that? Any good advice is highly appreciated.
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
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.
I am looking to create a tabbed application similar to Iphone's tab-bar. There will be a bottom tab bar in my app which will go to certain screens.
(example of my page layout):
[tab1] Book List -> Book Details
[tab2] Settings1 -> Settings2
[tab3] About
I need each tab to have its own separate navigation stack. So if I go from Book List to Settings1, to Settings2 and press back, I expect to be on Settings1. From there if I press back, I expect to still stay on Settings1 because all the tabs are separate from each other.
1) I tried using Android's native Tab Host but the tabs are placed at the top... so I placed the tabs at the bottom in my XML layout.
Issue: However my phone's scroll wheel doesn't work properly: When I'm on the tab and I want to get to the above content, I scroll UP (GOOD). When I'm on the content and want to get to the below tab I have to scroll UP (BAD, you should scroll DOWN to get it).
Is it possible to scroll down to reach the tab and scroll up to go back to the content?
2) Does anybody know any other lesser-GPL API that can achieve this? Or must I start from scratch?
Thanks.
You can use layout_gravity="bottom" in TabWidget to show tab bar in bottom like this:
<TabWidget
android:id="#android:id/tabs"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_width="fill_parent">
</TabWidget>