I'm unable to set make the Android button size any smaller

view story

http://stackoverflow.com – I'm at my wit's end here and nothing seems to help. I'm trying to set the button's width to wrap content, but nothing seems to work. This is my code for it : mfgb.setText(Integer.toString(mfg[x])); mfgb.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { mfg[x]++; mfgb.setText(Integer.toString(mfg[x])); fg[x]++; fgb.setText(Integer.toString(fg[x])); } }); mfgb.setOnLongClickListener(new View.OnLongClickListener() { (HowTos)