title: How to add (vertical) divider to a horizontal LinearLayout?
body: <p>I'm trying to add a divider to a horizontal linear layout but am getting nowhere. The divider just doesn't show. I am a total newbie with Android.</p>
  <p>This is my layout XML:</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.MainActivity&quot; &gt;
      
      &lt;LinearLayout 
          android:layout_width=&quot;fill_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:id=&quot;@+id/llTopBar&quot;
          android:orientation=&quot;horizontal&quot;
          android:divider=&quot;#00ff00&quot;
          android:dividerPadding=&quot;22dip&quot;
          android:showDividers=&quot;middle&quot;&gt;
  
          &lt;Button
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;match_parent&quot;
              android:text=&quot;asdf&quot; /&gt;
              
          &lt;Button
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;match_parent&quot;
              android:text=&quot;asdf&quot; /&gt;
      
      &lt;/LinearLayout&gt;
      
  &lt;/RelativeLayout&gt;
  </code></pre>