Android Quick Actions UI Pattern

Android Quick Actions UI Pattern

Till the official Twitter app is open sourced by Google, you may want to take a look at this implementation:
http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

Really easy to use and works great.

Is there something like a Quick Action for Holo-Themes?

The widget used in the shown gmail application is a PopupMenu (introduced in API 11). It's behavior is documented and explained in detail here.

Quick Action dialog in android having table or list layout

I did this using an Activity with transparent theme adding

android:theme="@android:style/Theme.Translucent.NoTitleBar" 

to the Manifest file and to dismiss it after clicking outside the activity. I used the following code in that activity

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Make us non-modal, so that others can receive touch events.
getWindow().setFlags(LayoutParams.FLAG_NOT_TOUCH_MODAL, LayoutParams.FLAG_NOT_TOUCH_MODAL);

// ...but notify us that it happened.
getWindow().setFlags(LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH, LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH);

// Note that flag changes must happen *before* the content view is set.
setContentView(R.layout.settings_table);
}

@Override
public boolean onTouchEvent(MotionEvent event) {
this.finish ();
}

Android QuickAction Notification View

I'm not sure what you want to achievie but I thing that you should read (if you didn't do it already)

http://android.cyrilmottier.com/?p=347

Android Quick Actions UI Pattern

QuickActions like the Twitter app

What is this controlled called?

It's referred to as a QuickAction, and while it's not directly available as a widget in the SDK (it's actually built out of PopupWindow) you can find a tutorial with available sample code here.

HTH

Customize quick action dialog for android

I think I solved my problem. Here it is now what it looks like.

What I found

Integrated the following code for setting it's position.

WindowManager.LayoutParams wmlp = this.getWindow().getAttributes();

wmlp.gravity = Gravity.TOP | Gravity.LEFT;
wmlp.x = 80; // x position
wmlp.y = 60; // y position

How to build Quick Action Bar like in Contacts application for Android?

IMO GreenDroid is a full-featured UI framework, but if you just want the QuickAction in your apps, you can use this http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
Just feel this way is simpler :D



Related Topics



Leave a reply



Submit