Advertisement
Guest User

Untitled

a guest
Jul 15th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1. protected void onCreate(Bundle paramBundle) {
  2.         super.onCreate(paramBundle);
  3.         setContentView(R.layout.installguides_menu);
  4.         setTitleFromActivityLabel(R.id.title_text);
  5.  
  6.         btn_Back = (Button) findViewById(R.id.btn_Back);
  7.         btn_Back.setOnClickListener (btn_Back_onClick);
  8.  
  9.         btn_Ubuntu10Guide   = (Button) findViewById(R.id.btn_Ubuntu10Guide);
  10.         btn_Ubuntu12Guide   = (Button) findViewById(R.id.btn_Ubuntu12Guide);
  11.         btn_BacktrackGuide  = (Button) findViewById(R.id.btn_BacktrackGuide);
  12.         btn_DebianGuide     = (Button) findViewById(R.id.btn_DebianGuide);
  13.  
  14.         btn_Ubuntu10Guide   .setOnClickListener (btn_Ubuntu10Guide_onClick);
  15.         btn_Ubuntu12Guide   .setOnClickListener (btn_Ubuntu12Guide_onClick);
  16.         btn_BacktrackGuide  .setOnClickListener (btn_BacktrackGuide_onClick);
  17.         btn_DebianGuide     .setOnClickListener (btn_DebianGuide_onClick);
  18.        
  19.         LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE); PopupWindow pw = new PopupWindow( inflater.inflate(R.layout.donation_popup, null, false), 100, 100, true);
  20.  
  21.         pw.showAtLocation(this.findViewById(R.layout.installguides_menu), Gravity.CENTER, 0, 0);
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement