What are the style guidelines for tabs in Android 3.0? - android

The next websites give explanation and guidelines of how to style the tabs and icons on android up to Android 3.0 (honeycomb) excluding this version:
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-tab.html
http://developer.android.com/guide/practices/ui_guidelines/icon_design_tab.html
http://developer.android.com/design/style/iconography.html
but I can't find the guidelines to Android 3.0 and above. Where are they?
Also, are there any other missing guidelines that need to be read?
The tabs I want to use are meant for an activity with both tabs and viewPager (like the tabs pager example of the compatibility package).

Android Design, where you can found the guidelines, was launched in January 2012. Before this date, Google didn't say which guidelines we must follow. This is the cause you can't find guidelines before android 3.0.
This is enough: http://developer.android.com/design/index.html
EDIT: And this: http://developer.android.com/distribute/googleplay/quality/tablet.html

found this one:
http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-actionbar.html#source.space.trim=1&source.space.pad=0&name=example&theme=light
not sure though if it's for tabs on android 3.0 and above . since it's for the action bar , it might be the correct one .

Related

Material Design Action Bar compatible from GingerBread onwards (Android)

I want a clean action bar which support from api 10 - api 21 to implement in my app. I have gone through different tutorials, developer documents from google and some examples provided at the developer site. Do we have simple solution for a clean code and easy to follow method for enabling Actionbar in an android app, (preferably which can works well with material design and features in lollipop without affecting anything bad in earlier versions). Also I need to create a navigation tab in Actionbar, the sample code provided on the developer site is not working for me.
Any suggestions, writes ups, tutorial links are appreciated. Thanks.
One of the most useful official introductory posts is this one:
AppCompat v21 - Material Design for Pre-Lollipop Devices!
This shows you how to backport the new Toolbar all the way back to Gingerbread, as they have done with the Play Store app.
See also the Material Design on Android Checklist post which is also great.
And don't miss the How to upgrade your app’s design from Holo to Material Design article!
Love Material Design ....
Try using the Toolbar from the Android Support Libary v7.
Toolbar in Gingerbread

use actionbar in android 2.3 programming

I have been using actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in my app but the target device is android 2.3.2 and does not support this code.
Is there any solution to have actionbar and tabview in android 2.3?
The solution for getting using the ActionBar in versions prior to 3.0 is called ActionBarSherlock, and enables you to give the user a unified experience across the Android versions.
Link to the website: ActionBarSherlock.com
There's actually also something called ActionBarCompat (read more here), but it's really inferior to ActionBarSherlock.
Edit: You'll find a lot of useful samples within the project hierarchy, but this should probably be the thing you're looking to accomplish: TabNavigation.java
Use ActionbarSherlock: http://actionbarsherlock.com/‎
Here is the tutorial for using tabs with ActionbarSherlock : http://www.androidbegin.com/tutorial/implementing-actionbarsherlock-fragment-tabs-in-android/
Yeah ActionbarSherlock is a best way to do it.
Here is how to add it link

Android: Setup App with ActionBar, Tabs, Fragments, Swipe compatible with SDK 8 (Android 2.2)

I'm planning an Android app that should make use of lots of UI features that later SDK versions bring with them incl. ActionBar, ActionBar.Tabs, Swipe navigation and use of Fragments (with replace, add, FragmentTransaction etc). The app should support SDK 8 (2.2) and later.
I'm a 'bit' at a loss here on how to set this up: will I be able to use all these features with the official Android compatibility library? Or will I have to use ActionBarSherlock? Will ABS give me advantages/ be easier to implement compared to the official comp. library?
Can I use the Eclipse/ ADT navigation templates with those two librarys? Can I use them alongside each other or do I have to comit to one of them?
Lot's of questions, I know :)
will I be able to use all these features with the official Android compatibility library?
No.
Or will I have to use ActionBarSherlock?
Yes.
Will ABS give me advantages/ be easier to implement compared to the official comp. library?
It will give you a backwards-compatible action bar. The Android Support Library does not.
Can I use the Eclipse/ ADT navigation templates with those two librarys?
You can do whatever you want. You will need to replace some stuff generated by those templates.
I think using using ActionBarSherlock is the best.
Have a look at this link

Android TabHost deprecated

I am creating application which will support Android 2.2 to Android 4.1. The TabHost is deprecated in Android version 3.2. But the created application supported in all the versions. But I want to create the Tab bar application which will look like a tab bar in Android 4.1 while running the application in Android 4.2, If I am running the application in below android 3.2 version device, it must look like the tab bar in that device. How can I do this.?
There are many points to your question,
TabHost is not deprecated yet. Recently Google deprecated TabActivity and ActivityGroup.
Even if it deprecated, it doesn't mean it can't be used. If X is deprecated, it only means a better alternative named Y is there.
Now to answer your question, You have more than one options
You can use ActionBarSherlock as other answers suggests. (EDIT : ActionBarSherlock is now deprecated.)
You can use TabHost with fragments, See my answer here for a
good example. To use Fragment in pre 3.0 API's you need to use
Google's support library.
Try out ActionBarSherlock.
ActionBarSherlock is an extension of the support library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.
The library will automatically use the native action bar when appropriate or will automatically wrap a custom implementation around your layouts. This allows you to easily develop an application with an action bar for every version of Android from 2.x and up.
Tutorials:
tutorial 1 , tutorial 2 ,
tutorial 3
Just to add, Android has introduced ActionBarCompat to ensure ActionBar is compatible with OS below 3.0 down to 2.1. You can use ActionBarCompat in the support library instead of ActionBarSherlock
http://android-developers.blogspot.co.uk/2013/08/actionbarcompat-and-io-2013-app-source.html

Fragments in Froyo

Can i use Fragments in 2.2 version of the Android (Froyo) using the compatibility package ?
I want to use two nested Tabs which on clicking should display related content in the Fragments.
Have a look at ActionbarSherlock. Short description from their website:
ActionBarSherlock is an extension of the compatibility library designed to facilitate the use of the action bar design pattern across all versions of Android with a single API.
With one API you can use all that 3.0 stuff on pre-3.0 devices. (It looks the same and behaves the same)
Yes you can. Tabs are not supported in the ActionBar by the compatibility library.

Categories

Resources