title: Android Button text gets cut off: solutions?
body: <p>I have a problem... I want to display a list of buttons that represent letters. Something like:</p>
  
  <p>[a] [b] [c] [d] [e] ....</p>
  
  <p>The problem is that the buttons are really small and the text gets cut off because of the padding of the button object. Is there a way to always display the button's text sort of on top of the button, so it doesn't get cut off?</p>
  
  <p>My only alternative seems to create JPEGs which mimic the buttons. But that is not elegant at all.</p>
  
  <p>Another option would be to show a TextView on top of the button, which may by a little more elegant that the previous choice. </p>
  
  <pre><code>for (...) {
     Button buton = new Button(Activity.this);
     LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.WRAP_CONTENT, 1);
     int margin = (int) Math.round(5 * SCALE);
     layoutParams.setMargins(margin, margin, margin, margin);
     buton.setLayoutParams(layoutParams);
     buton.setOnClickListener(new View.OnClickListener() { ... }
     (...)
     linearLayout.add(buton)
  }
  </code></pre>
  
  <p>What should I do?</p>
  
  <p>EDIT: I create all my Buttons inside a LinearLayout (horizontal) programatically. I don't know the number of buttons, so that's why I'm setting a weight. And I'm targeting API at least 8 (2.2).</p>