window.open and comes with android how to achieve the same effect browser, is in the original webview create a webview, but not full-screen, the upper right corner there is a close button! Ability to express good, renderings follows:

Reply:
Personalize ah

Reply:
Be your own layout, which contains a webView and a closebutton. Directly cover the top with addView
Reply:
Own layout? Is to write a layout file is not it? But addview how to call this layout document?
Reply:
Write a class that inherits from the layout of the document layout. For example, the layout file is relativeLayout, class also inherits relativelayout
Then in the constructor to this layout to inflate it.
Then a new custom file you can add a
Reply:
Brother, give point code? Grateful! !
Reply:
public class TutorialView extends RelativeLayout {
private View baseView;
public TutorialView (Context context, AttributeSet attrs, int defStyle) {
super (context, attrs, defStyle);
mContext = context;
}
public TutorialView (Context context, AttributeSet attrs) {
this (context, attrs, 0);
mContext = context;
}
public TutorialView (Context context) {
this (context, null);
mContext = context;
}
public TutorialView (Context context, int step) {
this (context);
this.step = step;
mContext = context;
init ();
}
private void init () {
baseView = LayoutInflater.from (mContext). inflate (
R.layout.my_relative_view, this);
}
}
That's it. You can write specific logic init years, such as content webView, ah, closebutton listening ah. Or add some other methods.
Reply:
still do not understand, and later with a new Activity barely meet the requirements of the
Reply:
Will the landlord you handle it? May I ask how you can live where window.open method to intercept events triggered
Reply:
Where to find the same pieces window.open method to intercept events triggered
Reply:
The landlord how to solve? ? ? ?
No comments:
Post a Comment