Created
March 22, 2013 11:53
-
-
Save korniltsev/5220724 to your computer and use it in GitHub Desktop.
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
/** | |
* User: korniltsev | |
* Date: 22.03.13 | |
* Time: 14:51 | |
*/ | |
public class ConfirmDialogFactory { | |
public static void build(Context c) | |
{ | |
final Dialog dialog = new Dialog(c,R.style.CustomStyle); | |
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); | |
dialog.setContentView(R.layout.confirmtransferdialog); | |
// set the custom dialog components - text, image and button | |
ImageButton dialogButtonOK = (ImageButton) dialog.findViewById(R.id.ConfirmTransferButtonOK); | |
dialogButtonOK.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
TabBarActivity parent = (TabBarActivity)getParent(); | |
parent.switchTab(1); | |
dialog.dismiss(); | |
} | |
}); | |
dialog.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment