-
-
Save selmanon/768d0a1001fcff31d390 to your computer and use it in GitHub Desktop.
popWindow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OnClick(R.id.rl_vision) | |
public void popWindowVision(View view) { | |
MainApplication.backEnabled = false; | |
LayoutInflater layoutInflater | |
= (LayoutInflater) getActivity().getBaseContext() | |
.getSystemService(getActivity().LAYOUT_INFLATER_SERVICE); | |
View popupView = layoutInflater.inflate(R.layout.popup_window_vision, null); | |
final PopupWindow popupWindow = new PopupWindow( | |
popupView, | |
AbsoluteLayout.LayoutParams.FILL_PARENT, | |
AbsoluteLayout.LayoutParams.WRAP_CONTENT); | |
Button button = (Button)popupView.findViewById(R.id.button); | |
button.setOnClickListener(new View.OnClickListener() | |
{ | |
public void onClick(View v) { | |
popupWindow.dismiss(); | |
MainApplication.backEnabled = true; | |
} | |
}); | |
popupWindow.showAtLocation(mRlVision, Gravity.CENTER, 0, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment