Guest User

Untitled

a guest
Jun 24th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package com.memecenter;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.view.ViewGroup.LayoutParams;
  7. import android.widget.Button;
  8.  
  9.  
  10. public class Menuprin extends Activity{
  11.  
  12. Button desc;
  13.  
  14. @Override
  15. protected void onCreate(Bundle TravisLovesBacon) {
  16. // TODO Auto-generated method stub
  17. super.onCreate(TravisLovesBacon);
  18. setContentView(R.layout.menuprinc);
  19. desc = (Button) findViewById(R.id.bdesc);
  20. desc.setOnClickListener(new View.OnClickListener() {
  21.  
  22. @Override
  23. public void onClick(View arg0) {
  24. // TODO Auto-generated method stub
  25. //Intent openMenu = new Intent (Menuprin.this, Menu.class);
  26. //Menuprin.this.startActivity(openMenu);
  27. int width = 100, height = 25, x = 0, y = 200;
  28. desc.setLayoutParams(new LayoutParams(width, height, x, y));
  29.  
  30. }
  31. });
  32. }
  33. }
Add Comment
Please, Sign In to add comment