Android popupwindow outsidetouchable and ontouch listener - java

Hi I have a popupwindow on my project.
I want these;
The outside of popupwindow will be touchable and
The popupwindow will be dissmiss when clik on popupwindow.
Actualy I want to use this like
Full screen back button.
I have a full screen button. it makes some components to full screen.
I want to put a popup button full go back from fullscreen view.
How can I do this ?
Sorry for bad english.
Thanks...

Related

How to add FLAG_SECURE to PopupWindow

How to add FLAG_SECURE to Popup Window?
I set window.addFlags(WindowManager.LayoutParams.FLAG_SECURE) on Activity,
But when I capture screen, only the PopupWindow showing.
Can I set WindowManager.LayoutParams.FLAG_SECURE to PopupWindow?

Webview Custom Back Button

I need to make custom back button in WebView.
Its any way to get OnBackPress with custom button?
Just have a full screen webview, and i want to make button to going back in the webview.
Thanks.

How to display pop up menu for Dynamically created Imageviews

I am Creating a ImageViews dynamically now i need to display pop up menu if click the ImageView.
ex: In that pop up i will add download. If i click that download button respective Image should download.
I'm not very sure about putting a button on an imageview...take a look at this answer:
Put a button over an ImageView
As for making a popup appear on button click, use dialogfragments.

How to change the button with a spinner in actionbar to loading?

I have a webview and want to listen its loading event and I have a refresh button on my actionbar.
How to change the button to a spinner programmatically?
You can't magically change a button into a spinner. What you can do is disable the button and enable the spinner.
myButton.setEnabled(false);
mySpinner.setEnabled(true);
If you want to make the spinner take the place of the button, then you're going to have to put all of your layout drawing routine into a buildLayout() (or whatever you want to call it) and redraw the entire layout with a button or with a spinner, depending on the state of your application.

View above Dialog?

Just a quick question.
Would it be possible to bring a View (Button) above a Dialog that is currently showing?
Thanks
You could splash another dialog(that contains a button) ontop of the first one.
If you are aiming to get literally just a button and nothing else you'd have to define a custom layout for a dialog that is all transparent except for your button.
No, but you can create it as a custom View on the Dialog, at least (with AlertDialog.Builder.setView()

Categories