Here is a popover controller of the ipad.
Any idea on how do we create the same kind of thing in Android? Actually i want to display html file or load webview with URL.
You can use this 3D QuickAction
This is an open source project. You can get it here: http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/
You can achieve this using a custom dialog (public class MenuDialog extends Dialog) that is semi-transparent (use alpha value in your bg color like #88000000). Set its content view to any XML layout you like, include a WebView
if you want.
And in the constructor, you probably could put something like:
Window window = getWindow();
window.setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
window.requestFeature(Window.FEATURE_NO_TITLE);
window.setGravity(Gravity.BOTTOM);
window.setBackgroundDrawable(
context.getResources().getDrawable(android.R.color.transparent) );
精彩评论