Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void shareTypes() {
- alert = new AlertDialog.Builder(this);
- alert.setTitle("Other Spoke Search");
- alert.setCancelable(false);
- // Set an EditText view to get user input
- alert.setView(input);
- alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int whichButton) {
- value = input.getText().toString();
- new serchdata().execute(value);
- listlinearlayout.setVisibility(View.GONE);
- textlinearlayout.setVisibility(View.VISIBLE);
- // Do something with value!
- }
- });
- alert.setNegativeButton("Cancel",
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int whichButton) {
- // Canceled.
- }
- });
- alert.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment