I want to know which actionbar blackmart alpha app use?
here is a screen shot from its search view on search icon clicked:
http://i.stack.imgur.com/PatzU.jpg
I want to use this actionbar because sherlock actionbar does not supoort search view in android 2.3 < devices.
If any one have a tutorial about how to create this actionbar with search view, it can really help me.
You better user ActionBarSherlock. It's a nice lib that provides backward compatibility down to Android 2.1 and mimics the Holo ActionBar that looks like this one in your screenshot. There's also plenty of documentation and questions and answers about it here in SO. Besides that, it's pretty reliable, and easy to use. Many famous apps use it.
Related
My question is not about how but is it OK to use a custom size for actionbar from the perspective of future releases of Android ?
Could using a custom size break the product in future releases ? or need more testing now and future ? What kind of things should I think of, before using a custom size ?
Our designer is iOS guy and is giving me designs with thin actionbar as in iOS. I want to know any technical reasons to use standard size before pushing back.
appreciate any responses.
No, there's no problem.
The ActionBar is now customizable with Toolbar. And Toolbar has been added to support library (which indicates that it's probably going to be used widely).
But as in if it's OK design-wise, you can take a look at Material Design specs to get more information.
I'm looking to make a layout where there are tabs at the top. The tabs would be:
Friends, Requests and Search. I would like the Friends and Requests to be buttons as they need to be read where as I would like the Search to be the generic magnify glass. I have had this working with a fairly generic setup however the SearchView is squished and can't be read.
Would ActionBarSherlock allow me to accomplish this?
Is ActionBarSherlock capable of creating such action bars below the main actionbar at the top of the screen?
If it isn't what would be the best way to accomplish this kind of view?
Cheers,
Jake
The Android SDK now offers a native solution for the ActionBar pattern. It's available through the v7 appcompat library. So, there's no need to integrate Action Bar Sherlock on you app.
All the info you need and related links can be found at Developer Android Site.
The purpose of ActionBarSherlock is to bring the Action Bar to older (pre-Honeycomb) devices. If that isn't a requirement, you don't need ABS and I recommend not using it. Here's some documentation on using the latest APIs to do what you need:
Tabs
Search
I have used ABS before and it is completely OK to go with it. In case you don't have any constraint to use only ABS it is always better to go with Android's action bar
I am trying to implement an ActionBar into my existing project but don't know where to start. I immediately started building a classic menu button menu, before I realized that it is deprecated and some devices (nexus 7) can't access such menus.
What is a good way of implementing an ActionBar over a map? I am already deep into this project and it is due in a couple of days so rewriting the program is not really an option.
What I am really looking for is two or three simple options always available at the top or bottom of the map which extend to a list if clicked. Thanks !
For implementing ActionBar in a back-compatible way you would probably want to use ActionBarSherlock and its Maps plugin.
Take a look at its samples, it's pretty simple to use.
In my app I would like to have something quite similar to Android's built in popup menu (see link below), but it also needs to include checkboxes and images and I should be able to choose several checkboxes before closing (with the same button that opened it). Is it possible to do that with android popup menu? Is there a better way? Any chance there is a way to do it on android 2.1 (this the version on my demonstration device)?
Thanks for your time,
Lior
You can use the overflow menu in Android 3+. But there is a way to use it in lower APIs by just using ActionBar Sherlock. See the demo App of the ABS. There is also a demonstation of it.
It should look something like this.
I've a requirement to show tabs in an app. I've actually never used TabHost etc before, and the docs suggest the whole thing is a mess. TabActivity has been deprecated. I can't easily use it anyway as I'm using ActionBarSherlock so I cannot inherit from it. Then of course as of ICS, I'd not use a TabHost anyway, I'd use tabs on the Action Bar. As my tabs are just text and are simple in nature I see three options:
Kick TabHost into working with ActionBarSherlock. It'll look pig ugly on ICS devices.
Use ActionBarSherlock and implement tabs, on the assumption it renders the ActionBar tabs in some way on versions of Android prior to v4 (I have no idea if it does, I suspect not)
Just use Views as "tabs" to jump between activities
I'm leaning towards the last option, but would appreciate clarification.
Use ActionBarSherlock and implement tabs, on the assumption it renders the ActionBar tabs in some way on versions of Android prior to v4 (I have no idea if it does, I suspect not)
It would appear that ActionBarSherlock supports tabs on all Android API levels that ActionBarSherlock itself supports.
For example, they demo it on an Android 2.3 environment:
And the FAQ talks about tab support "on pre-3.0 devices".
And the theming page lists theme attributes for styling tabs.
And the Google Group has all sorts of discussion on using tabs.