Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.memecenter;
- import android.app.Activity;
- import android.os.Bundle;
- import android.view.View;
- import android.view.ViewGroup.LayoutParams;
- import android.widget.Button;
- public class Menuprin extends Activity{
- Button desc;
- @Override
- protected void onCreate(Bundle TravisLovesBacon) {
- // TODO Auto-generated method stub
- super.onCreate(TravisLovesBacon);
- setContentView(R.layout.menuprinc);
- desc = (Button) findViewById(R.id.bdesc);
- desc.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View arg0) {
- // TODO Auto-generated method stub
- //Intent openMenu = new Intent (Menuprin.this, Menu.class);
- //Menuprin.this.startActivity(openMenu);
- int width = 100, height = 25, x = 0, y = 200;
- desc.setLayoutParams(new LayoutParams(width, height, x, y));
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment