SlidingTabLayout with subtabs - android

I would like to implement subtabs in SlidingTabLayout.
I searched a lot, but I don't have found anything like it.
Does anyone have a solution or a suggestion for implementing this?
Thanks.

There's quite a simple approach. You can associate you main tabs with viewpagers. Then, in those viewpagers you may add more slidingtablayouts in order to attain what you want to. I've got it working successfully. So nest the slidingtablayouts and you'll do fine. If you want some code, feel free to ask for it.

I implemented a simple example of sub tabs with slidingtab:
https://github.com/steinmetz/SubSlidingTabs

Related

what is fragment activity in android studio?

I'm new to android. i have huge confusion on handling fragments. i'll be pleased if anyone suggest me to know about handling fragments in android? It'll be very helpful.
Thanks in advance.
I needed to use fragments to!
What I do is that I have a FrameLayout inside the activity_main.xml and then I replace the Framelayout with the fragment I want.
If you search here in StackOverflow there's so much information about it.

Creating swipeable intro in android

I'm looking for a a tutorial or a start for creating swipeable intros like this image for introducing and helping users in using the app, I know it is based on android swipeable views but all the links I found had tabs, and since these kinds of intros are very popular I though maybe there is a better and more forward way to do it.
Thanks very much
Try to use : Android-ViewPagerIndicator lib(https://github.com/JakeWharton/Android-ViewPagerIndicator)
You need to use a ViewPager and a library called ViewPagerIndicator for the small circle at the bottom.

Combine tab and listview for android

I'm developing an application for android that is supposed to have three tabs that shows three different listviews. It should look pretty much like this video example:
http://www.androidhive.info/2012/05/android-combining-tab-layout-and-list-view/
The problem i have is that TabActivity is deprecated and i can't found any good tutorials for the Fragment view (which I think is the one to replace TabView). Anyone know how to combine these two views?
You might want to look into ActionBar and Fragments. Maybe the following link could help you out? http://www.lucazanini.eu/2012/android/tab-layout-in-android-with-actionbar-and-fragment/?lang=en

Android 4.0 - Youtubestyled Tabhost - How is that possible?

What I try to do
Hello Guys, I'm creating an app, and I want that it looks nice and simple to control. In my app I got a Tabhost with 3 Tabs. Every Tab is a fragment with diffrent content. Now its the problem, when I switch the tab. I have to do this over a click on the tabhost.
But if you take a look at the Youtube-App on Android 4.0 its possible to switch the tab over a swipe gesture. And exactly here I stuck, how is that possible.
I searched the web, took a look into the Android Documentation, but I didn't really find anything about this topic. So how is that possible to create something like that?
Question
What do I need to do, that I can switch in my tabhost like its done in the Youtube-App. If you have some great tutorials, code snippets or any other tipps, please post them.
Thx for your help in advance.
safari
Pictures
Here you find some pictures to explain better what I'd like to create. They are ordered chronologically.
They are using a ViewPager for that.
ActionBarSherlock samples contains great examples of ViewPager+Fragments tabs:
http://goo.gl/GpbY4

ViewPager with right/left scroll

could somebody help me and give a example of how can I do a viewpager that can be rotated right/left, something like this: http://1.bp.blogspot.com/-0Sjg8-LaZuo/TkxHAPOkAkI/AAAAAAAACgM/VjNo-nK9fuk/s1600/device-2011-08-18-005327.png
thanks!!!
What you need is this http://viewpagerindicator.com/
Best solution I have seen so far.
Archive that you'll find on this site contains both library and example showing how to implement such type of GUI in you app.

Categories

Resources