title: How can I stick buttons to one another in TableLayout?
body: <p><a href="https://i.stack.imgur.com/zfonI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zfonI.png" alt="enter image description here"></a></p>
  
  <p>1) How can I make all buttons stick to one another so that there is no space between any 2 buttons?
  2) How can I make the picture of the bomb be inside the button as backround(I have  it done wrongly)
  Here is some code how I added image:</p>
  
  <pre><code>clickedButton.setPadding(0,0,0,0);
          int newWidth = clickedButton.getWidth();
          int newHeight = clickedButton.getHeight();
          Bitmap originalBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.b64);
          Bitmap scaledBitmap = Bitmap.createScaledBitmap(originalBitmap, newWidth, newHeight, true);
          Resources resource = getResources();
          clickedButton.setBackground(new BitmapDrawable(resource, scaledBitmap));
  </code></pre>
  
  <p>Thank you very much!</p>