开发者

Android - popover controller same as ipad [closed]

开发者 https://www.devze.com 2023-02-24 11:29 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_高级运维 Closed 11 years ago.

Here is a popover controller of the ipad.

Android - popover controller same as ipad [closed]

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

Android - popover controller same as ipad [closed]

Android - popover controller same as ipad [closed]

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) );
0

精彩评论

暂无评论...
验证码 换一张
取 消