Android convention for a complex modal interaction - android

I'm looking for the "Android way" of implementing a modal view which interrupts the current flow, and displays another set of screens (more than one). Once done, I'd like to go back to where I was.
I'm actually looking for something similar to the iOS behavior described here.
Is there a standard way of doing it in Android (ICS)?
Thanks!
Ariel

I think the functionality closest to a modal view in iOS would be an Activity with theme set to for example
<activity android:theme="#android:style/Theme.Dialog"/>
or
<activity android:theme="#android:style/Theme.Holo.Dialog"/>

Related

Activity over navdrawer

I am trying to design a screen that must be rendered above anything (kind of like an alert, but it can't be an alert). As I am very new to Android development my only worry is that this window must be put above even the navdrawer. Can this be done?
Thanks
[EDIT]
It's like that:
http://flic.kr/p/k3XRzv
why do you not want to use the alertbuilder? - simple, easy to use and flexible?

What is the name of this balloon-like UI component? (Android/Linux)

This is neither a code-question nor technical issue, so I admit that it can be somewhat off-topic with StackOverflow, but I'm in really need of help because I already took lots of time.
I'm working with a help window implementation and I'd like to do this with a type of view that I've seen in some of Android button options. In some versions of Ubuntu, the view can also be seen when you point your mouse arrow within an application shortcut in the main taskbar. It looks like a balloon-type dialog box. Bellow is a screenshoot of the view:
My issue is a somewhat softheaded one: I don't know the technical name of this UI component, and so I can't search for documentations and examples.
I've already searched for several combinations of terms such as dialog-box, menu, balloon, popup-menu and so on, without success. Can someone tell me the name of this UI and, if possible, post a simple example of usage in Android/Java?
Thanks in advance!
There's no native UI with that approach but, you can use any viewgroup you prefer (depending on the content of it) and set the background of this viewgroup to be a 9 patch drawable.
That looks like a popup. It's not a standard component, but you can create one like that with PopupWindow.
See how to create popups in Android for details implementation.
There is no UI View for that: check http://greendroid.cyrilmottier.com/ There is something like QuickAction. Simple to use and free ;)

Floating Honeycomb window

How can I create a floating window in Android Honeycomb like the one of Calculator or notepad application?
I've tested with
android:theme="#android:style/Theme.Dialog"
and I get a centered transparent activity but the problem is that it isn't movable and hasn't close button.
That calculator you show isn't a part of Android. Also, Android windows don't have close buttons like that. I don't know what you are looking at, but it isn't standard Android in any way shape or form.
AirCalc can do it https://play.google.com/store/apps/details?id=com.myboyfriendisageek.aircalc&hl=en
--Edit
Just to add to my previous answer. It doesn't need to be Custom API provided by device manufacturer as #hackbod mentioned in the above answer.
You can actually write a Service and Add a Layout to the WindowManager and set it to be TYPE_SYSTEM_OVERLAY and there you go, your application is running on top of other applications.

Android Dropdown List (iPhone style)

Could anyone tell me either what this widget is or how it could be recreated? I'm having to port over a iPhone app, and my boss wants me to make it look as similar as possible, but while using android controls. Here is a picture of it in Android:
http://cdn3.staztic.com/screenshots/android-swim-32-2.jpg
Thanks!
It is not a standard thing, but for this purpose, there is a: QuickAction dialog.
this can be done with a PopupWindow (it can also be shown as dropdown) where the background is a custom nine-patch file and the content is a listview (or any other view that fits your needs).
I'm sure that GreenDroid Library can do this but I don't know the name of the class to use

Android Tweetdeck-like UI

I'm getting started with Android development, and I would like to have an interface similar to that of tweetdeck: there are several workspaces (activities) that are laid out left to right, and the user can switch between them with a horizontal gesture. The same way the Android desktops are switched.
In tweetdeck there are also dots in the titlebar, that indicate on which side and how many workspaces there are.
Is it a standard Android interface, or something custom built? How do I do something like this?
How you go about this is going to be partially dependent on the content you want to present. If there are going to be many heavyweight pages you'll want to look into doing something like a custom AdapterView. If there are only a few fixed pages such as in the stock home screen you can treat it like a scrollable view with some custom logic to handle snapping to pages.
Here's a link to the custom view that implements this in the stock Android launcher. The bits you're interested in will mostly be in onTouchEvent, onInterceptTouchEvent, and computeScroll.
https://android.googlesource.com/platform/packages/apps/Launcher2/+/master/src/com/android/launcher2/Workspace.java
Take a look at ViewFlipper: http://developer.android.com/reference/android/widget/ViewFlipper.html
In addition to studying the actual Android code (referenced in another answer), some folks have extracted and isolated the workspace (Launcher2) code into a re-usable view group. You can find the work in github here https://github.com/olibye/AndroViews

Categories

Resources