Guest User

Untitled

a guest
Oct 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. package com.blogspot.dbh4ck.aes_encrypt_decrypt_android;
  2.  
  3. import android.app.Dialog;
  4. import android.content.Context;
  5. import android.view.View;
  6. import android.widget.Button;
  7.  
  8. /**
  9. * Created by DB on 18-02-2017.
  10. */
  11.  
  12. public class AboutAesDialog extends Dialog implements View.OnClickListener {
  13. Button OkBtn;
  14. public AboutAesDialog(Context context) {
  15. super(context);
  16. }
  17.  
  18. public AboutAesDialog(Context context, int themeResId) {
  19. super(context, themeResId);
  20. }
  21.  
  22. protected AboutAesDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
  23. super(context, cancelable, cancelListener);
  24. }
  25.  
  26. protected void onStart() {
  27. super.onStart();
  28. setContentView(R.layout.about_aes);
  29. getWindow().setFlags(4,4);
  30. setTitle("About AES");
  31.  
  32. OkBtn = (Button) findViewById(R.id.OkBtn);
  33. OkBtn.setOnClickListener(this);
  34. }
  35.  
  36. @Override
  37. public void onClick(View view) {
  38. this.dismiss();
  39. }
  40. }
Add Comment
Please, Sign In to add comment