title: Android layout_gravity problem?
body: <p>Following is my xml
    I want to set <code>button1</code> to left centrally vertical and <code>button2</code> to right centrally vertical but for me <code>android:layout_gravity="center_vertical|right"</code> is not working what is the wrong?
  I know that i can achieve this by applying by using padding or margin but I won't know that why it is not working. <strong>How should I make it work?</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;HorizontalScrollView 
      xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
      &lt;FrameLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
          &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Button1"
                  android:layout_gravity="center_vertical"
                  /&gt;
          &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="Button2"
                  android:layout_gravity="center_vertical|right"/&gt; 
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
          &lt;/RelativeLayout&gt;
      &lt;/FrameLayout&gt;
    &lt;/HorizontalScrollView&gt;
  </code></pre>