Created
March 6, 2011 18:47
-
-
Save clayallsopp/857531 to your computer and use it in GitHub Desktop.
Making OfflineListActivity an onClickListener
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
public class OfflineListActivity extends ListActivity implements OnClickListener { | |
... | |
@Override | |
public void onClick(View v) { | |
AlertDialog alertDialog = new AlertDialog.Builder(this).create(); | |
alertDialog.setTitle("BRO"); | |
alertDialog.setMessage("Check it: " + brocabs[(Integer) v.getTag()]); | |
alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL,"OK",new DialogInterface.OnClickListener() { | |
public void onClick(DialogInterface dialog, int which) { | |
} | |
}); | |
alertDialog.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment