title: Border Lines for cells in GridLayout, TableLayout, or GridView?
body: <p>I am trying to create a table/grid for some items within my app and I would like to have a border around each cell to divide the items up and have a coherent association of the setting with the item. This app will be used in an industrial setting where there may be people unfamiliar with Android that need to use this, thus trying to make it as easy as possible.</p>
  
  <p>The table/grid will contain <code>TextView</code>, <code>EditText</code>, <code>Spinner</code>, and <code>Button</code>, and will also be scrollable (via <code>ScrollView</code> parent).</p>
  
  <p>I read about the <code>GridView</code> and found that it (seems) to only be able to get items programmatically, please correct me if I am wrong. I felt that this was unnecessary since I know what items I want and where. Also, I have not tried adding items to a layout programmatically yet so I figured I would try the other options first. Also, the <a href="http://developer.android.com/reference/android/widget/GridView.html" rel="noreferrer"><code>GridView</code> documentation</a> does not say one way or the other if border lines are automatically shown, or if you can have them shown at all.</p>
  
  <p>I started with a <code>TableLayout</code> and was able to get everything except the border lines to work. I tried <code>android:divider</code> to get the lines but that didn't work. One thought I had was to create a bunch of <code>TextView</code>s with black backgrounds and ~2dp widths/heights to make my own border lines. This feels like a huge waste though. Then I also read the <a href="http://developer.android.com/reference/android/widget/TableLayout.html" rel="noreferrer">TableLayout documentation</a> and found this: <strong>"TableLayout containers do not display border lines for their rows, columns, or cells."</strong> </p>
  
  <p>I then tried the <code>GridLayout</code> and had the same results as the <code>TableLayout</code>. I tried <code>padding</code> and <code>margins</code>, neither worked. Also, the <a href="http://developer.android.com/reference/android/widget/GridLayout.html" rel="noreferrer">GridLayout documentation</a> states: <strong>"The grid is composed of a set of infinitely thin lines that separate the viewing area into cells."</strong></p>
  
  <p>My questions are: </p>
  
  <ol>
  <li><p>Is there an attirbute that I missed in <code>TableLayout</code> or <code>GridLayout</code> that will give me border lines via the xml? </p></li>
  <li><p>If no, then will the <code>GridView</code> give me the lines I want?</p></li>
  <li><p>Will I be able to add all the perviously mentioned items I want to the <code>GridView</code>?</p></li>
  </ol>