Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Since the ActionBar is available only in Android 3.0 and later, what is a good way to implement ActionBar-like widget in earlier sdk versions? I am looking to do this programmatically, if that helps.
I have created a library, ActionBarSherlock, which is extended from the Android Compatibility Library to implement support for the native action bar all the way back to Android 1.6.
The key feature of this library is that it mimics the native action bar of Android 3.0+ and allows you to interact with it and theme it on all version of Android from 1.6 up through the current newest version, 3.1. There are samples and documentation on the website linked above which should give you a good idea about how it works.
You can also look on the implementations page on the GitHub wiki for real world applications of the library.
The Google IO 2011 app is a good example
It runs on versions of Android less than 3.0 as explained during the Google I/O 2011 session, Designing and Implementing Android UIs for Phones and Tablets.
Use android-actionbar or GreenDroid.
The new Android support library adds ActionBar support back to API 7.
http://developer.android.com/tools/support-library/index.html
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have to make my app fully in material design. It should support pre-lollipop devices as well. I tried with one support library found here.
It works fine, but seems to be slow in effects like ripple effects. In some articles, I found we can use
compile "com.android.support:appcompat-v7:21.0.+1"
This dependency like here.
What is the right way to implement material design on older devices?
I want to use material items, like Floating action button and all.
MaterialDesignLibrary by navasmdc seems to be forgoten with 150+ issues reported. It's also known for its conflicts with other libraries, lack of support and poor widget implementation.
Basically it depends on what would you like to achieve. Most of material features is too heavy to be used on older platforms. If you wish to have FloatingActionButton, Toolbar, RecyclerView and theming, you can use the Design Support Library and AppCompat from Google.
If you wish to have shadows, ripples and others, you should look for open-source libraries. Ray's lib is a very good example. Check out awesome-android and Android Arsenal. Both have a good list of material libraries.
I have my own library as well. It's called Carbon and it backports most of material features to Android 2.2+.
I have used the support design library, for ripple effects and other good features use rey material library, you can also see navasmdc
Easy way to implement material design is to use open source libraries that supports all pre-lollipop devices.
Have a look at this and this.
There are many other libraries as well. You can google it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have developed a simple app, using a webview. It crashes on APIs older than 11. I guess that I used some futures that are not supported on old APIs and that is why it isn't working.
Sometimes when I am changing my code in Eclipse it gives me error about this, but most of the times there's no error or warning.
I think it's a bug in Eclipse, how should I find the parts that are causing the problem.
I won't send any code because it is a general question of mine.
Your app is crashing on devices older than API level 11 due to ActionBar compatibility issues.
You will need to use support library appcompat_v7 to make your app with ActionBar run on devices lower than API level 11.
Here's a complete tutorial of using appcompat_v7 library :
http://android-er.blogspot.in/2013/12/create-dummy-app-extend.html
Official link :
https://developer.android.com/tools/support-library/setup.html
Hope this helps!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I come from iOS development, with some basic android apps done,
now im using a android sherlock actionbar,
I dont have clear if this is the same in iphone [iOS] as a UINavigationBar?
thanks!
The Actionbar is an incredibly useful UI widget for Android, having roughly the same appearance as the UINavigationBar on iOS, except with Android specific UI paradigms (context menu integration, tabs, progress loaders and more).
You'll quickly discover though, that the Actionbar only existed natively from Honeycomb (Android 3.x) onwards. So how do we get the Actionbar into projects that use earlier Android versions?
Android's achilles heel is the massive and somewhat fragmented ecosystem. For some reason to do with economics, market demographics or perhaps pure disdain for developers, some manufacturers insist on making devices for Android 2.x - rather than the newer 4.x version of Android. In this instance it's better to use a third party library called ActionbarSherlock by Jake Wharton. ActionbarSherlock (ABS) is basically a support library that will enable most Actionbar features on versions earlier than 2.x, with a few extra options to boot.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am new android app developer i want make app for tablets and phone . i don't know which api level to create application and i need sample tutorial to me .please refer tom some books or web link tom me thanks for advance
Well you need to determine is what is a valid tablet as there are plenty out there running 2.1, 2.2, 2.3, 3.0, 3.1, 3.1 etc before you even get to the latest ICS which is already on a newer version so this covers levels 7 through to 15.
The other issue is that there are no phones I am aware of running Android 3.X.
I would target level 14 which is ICS but this cuts off many phones running 2.2 and above so you need to code your application to detect what the api level is and run code depending on what the api level is you detect at runtime.
Additional links courtesy of #Renard
These libraries seem to offer what you want without you having the headache of dealing with different api levels yourself.
http://actionbarsherlock.com/ and http://nineoldandroids.com/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to create an Android app for the Honeycomb tablet.
What Android Platform/API Level is required to do so?
Thanks in advance.
I would use the 3.0 because this is the first Honeycomb release. You should not have backward comptability issues. But using the latest (3.2) release will cause problems with the earlier releases.
For Honeycomb you should use android 3.0.
I want to create an Android app for the Honeycomb tablet.
Sweet!!!
What Android Platform/API Level is required to do so?
Honeycomb (API v11)