ActionBarSherlock is the correct choice? - android

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

Related

Android material tabs w/ appcompat

I want to setup a 'tabbed' application. Looking through all the tutorials including the google docs here:
http://developer.android.com/training/implementing-navigation/lateral.html
However as I start to go through the docs I get all kinds of deprecated warnings:
actionBar.setSelectedNavigationItem(position);
I would really like to start off right and use any new non deprecated methods. Most examples of tab applications are years old. What am I missing? Am I searching for the wrong thing? Can someone point me in the right direction for developing a tabbed application.
What am I missing?
Action bar tabs were deprecated in Android 5.0, last fall.
Can someone point me in the right direction for developing a tabbed application.
Use TabLayout, though this is a very new addition to the Android Support libraries.
Or, use ViewPager with your favorite tabbed indicator, of which there are many.
Or, use FragmentTabHost.

Creating Navigation Tabs in Android

I'm new to Android (and Java to some extent).
My question is how can I create a tabbed action bar for navigation in an Android Application?
The possibilities and variances are mind boggling and i cant tell what is useful or not.
On the Android developer site it says you can use navigation tabs with fragments but all i want the navigation tabs to do is start activities so fragments seems overcomplicated and unnecessary.
All I want is a nice tabbed navigation bar with three options. I also have one option in the action bar for a quick action. Some sites are suggesting action bar sherlock but this is throwing up errors that i cant seem to fix.
Surely i dont have to download a whole separate library just to make a tabbed action bar that starts activities when each is touched.
(sorry im really new to this and Android is totally impenetrable at the moment)
Take a look at the action bar api:
http://developer.android.com/guide/topics/ui/actionbar.html
Also, realize that you don't need to download "extra" libraries.
I am an Android developer and when I first started, figuring out all of the ways to build Android apps was overwhelming. Navigational tabs were my worst issue. You can read all about tabs here. If you would like some code examples there are repositories on Github like this one.
Hope this helps,
Andrew

Implementing an ActionBar to a custom MapView

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.

Diagnosis android actionbar (from picture)

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.

android pop up menus

I cannot find either one of these two views in the source, but have seen them both in many apps. Can anyone please tell me what they are called?
Thanks
The second one is an options menu from the action bar. I think it is implemented as a ListPopupWindow.
The first one is not part of the Android SDK, though there are various implementations floating around. Here is an example of one designed for use with Google Maps, for example. Here is one designed for the "quick actions" pattern.
I'm going to assume that they're custom made ones, so you won't find them in the standard Android libraries.
The second one I think is just the way that the default menu looks in ICS (and honeycomb for that matter). If you build for 4.0 and include the code for an options menu I think you'll get that UI by default. If you are looking to customize it check out this page http://developer.android.com/guide/topics/ui/actionbar.html and pay close attention to the "Adding drop down navigation" section.
The first one is not a part of the android UI, that is something specific to the facebook app.

Categories

Resources