ProgressDialog near application label - android

I noticed that some applications have ProgressDialog near application label which i marked with red circle in the image below -
does somebody know how can i get ProgressDialog there?

You are talking about the so called Action Bar. This UI concept allows developers to place their menu and contextual information regarding to the currently displayed screen in a separate bar at the top, including the indeterminate progress indicator you mentioned. Natively, this bar isn't available on older android versions, but there is an excellent library that allows you to use the action bar and still target older versions: ActionBarSherlock
You can take a look at the capabilities of the action bar with the ActionBarSherlock Demo

Related

center align icons in titanium action bar for android

Is there any possible way to center align the action item icons that are shown in action bar of titanium app for android. I have searched a lot of places for this solution but had no luck. I want the action bar to look like the below image. Also tell me the way to not show app title in the action bar.
This is not a Titanium issue.
As you can read in Google's documentation, you won't be able to center anything in the ActionBar. Default (and expected) behaviour is to align action icons on the right (or left if reversed).
I don't recommend it, as it goes against Google's guidelines, but you will be able to center icons if you create a fake ActionBar:
- Remove native ActionBar from any window in your app
- Create a Titanium View that mimics the ActionBar
- Add icons and bind click events.
That's it, you are done.

ProgressBar in ActionBar on Android L Preview

Today I started porting an app to Android L preview in order to have it almost ready when the final product launches. One problem I found is that I can't have an indeterminate progressbar on the ActionBar. It doesn't show at all and throws this error on logcat:
E/PhoneWindow﹕ Circular progress bar not located in current window decor
I'm using this code, which works in <4.4:
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setProgressBarIndeterminateVisibility(true);
Is there any way to get it working again in Android L or should I use an external ProgressBar?
I've just found this question and checked the bug report.
It seems that the dev team had concluded that the issue won't be fixed.
That is:
intended as the progress bar features are not supported on Material action bars.
The "Material action bar" should mean 4.4 (API19) or later's action bar.

Android HTC One Bottom Action Bar

I’m using a HTC One (engineering sample) Android phone running Android 4.x
In any app made with Xamarin I see the action bar (red square) at the bottom of the screen. Even when having my own action bar (picture right), the bottom action bar is there. In this case, both action bars can be clicked (settings).
Some 3rd party apps have the same action bar problem, others (FaceBook etc.) don’t.
How can I get rid of this bottom action bar?
The sample you see here is the Xamarin ActionBarSherlock sample.
How can I get rid of this bottom action bar?
Set your android:targetSdkVersion to 14 or higher. What you are seeing is the "legacy menu button of shame".
I have a bit more on this topic in this year-old blog post.

Android - Action Bar Style

I want to show Action Bar like below.
I have already used this library clickhere
But it takes only two icons on Action Bar. If I add four items, then last two are shown me like menu. I want all in Action bar same as image above.
Is it possible? if yes, then HOW? Can I change Action Bar color or its default style available in Device?
Thanks in Advance.
I recommend you use this:
http://jgilfelt.github.com/android-actionbarstylegenerator/
to style your ActionBar.
If you want all the 4 icons to be there, just add this attribute to all the menu items:
android:showAsAction="always"
hello try this library
it sure help you And you may have to add you own logic to handle this in below 2.3 Android OS and above 3.0 Android OS.
there is many demo sample available like below :
There is no way you can be sure of the number of icons displayed in the action bar. There is a large varierty of Android devices out there and they all have different screen sizes. That's why you have to prioritize the actions available in a menu : the most important will be displayed as actions in the action bars and the others will be displayed in the "menu" : the action overflow.
You should think of actions in a functional way, not a graphical way.
With ref to Image that you attached you should decide which design pattern you want to use in your application, there are many UI patterns available for mobiles, tablets. The image you attached looks like Side Navigation UI pattern. It's better you decide which UI pattern perfect for your app.. then start implementing it with custom action bar libs (if you want action bar in less than Android 3.0 ver) or any other.

Customized navigation menu in Android

I'd like to create a navigation menu in my Android app: a bar always at the bottom of the screen, with 4 choices Home|Categories|Search|Favorites, and the current page highlighted.
It seems the options menu can hardly be customized, so I can't use it.
Do I have to add this navigation bar in every layout or is there any better solutions?
Thanks
Julien
It sounds like you're replicating an iPhone interface. As most Android phones have buttons along the bottom of the screen (Home, Back, etc) it's likely to be a bad idea to put navigation there as it's easy to hit the wrong one.
The Google-recommended approach is to use the Action Bar pattern, across the top of the screen, which is very clear, and means your app is consistent with others (look at Twitter, Google Maps, Facebook - they all use the action bar pattern).
From Honeycomb (v3.0) onwards:
http://developer.android.com/reference/android/app/ActionBar.html
A simple library to create an Action Bar on any version of Android
https://github.com/johannilsson/android-actionbar
To create an action bar that uses that library on versions earlier than 3.0, but uses the official implemention for v3.0+, try this:
https://github.com/JakeWharton/ActionBarSherlock
The action bar is highly customisable, but remember that a key to a nice user interface is consistency across the platform, i.e. your app consistent with other apps and the OS.
If you need a navigation with more items or items within a specific page, you can use TabLayout, but for your primary nav, use the action bar, that's what it's for.
Use the TabLayout

Categories

Resources