Skip to content

Instantly share code, notes, and snippets.

@flagoworld
Created July 19, 2011 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flagoworld/1091162 to your computer and use it in GitHub Desktop.
Save flagoworld/1091162 to your computer and use it in GitHub Desktop.
public void doSearchButton(View v)
{
Dialog alert = new Dialog(SearchTabActivity.this);
alert.setContentView(R.layout.search_filter);
alert.setTitle("Filter Search Options");
alert.setCancelable(true);
Button butt=(Button)alert.findViewById(R.id.continueButton);
butt.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
alert.cancel(); //how do i make "alert" accessible in this scope?
}
});
alert.show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment