title: add android gridview items from right to left
body: <p>I want to make my gridview to add items from right to left,</p>
  <p>I mean something like this:</p>
  <blockquote>
  <p>3     2     1</p>
  <p>6     5     4</p>
  </blockquote>
  <p>so i added <code>android:rotationY=&quot;180&quot;</code> to my gridview in my <code>main.xml</code></p>
  <pre><code>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:layout_width=&quot;match_parent&quot;
  android:layout_height=&quot;match_parent&quot;
  android:background=&quot;#ffffff&quot;
  android:gravity=&quot;center&quot;
  android:orientation=&quot;vertical&quot; &gt;
  &lt;GridView
      android:id=&quot;@+id/gridview&quot;
      android:rotationY=&quot;180&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;fill_parent&quot;
      android:layout_gravity=&quot;right&quot;
      android:columnWidth=&quot;90dp&quot;
      android:gravity=&quot;right&quot;
      android:horizontalSpacing=&quot;10dp&quot;
      android:numColumns=&quot;auto_fit&quot;
      android:stretchMode=&quot;columnWidth&quot;
      android:verticalSpacing=&quot;10dp&quot; /&gt;
  
    &lt;/LinearLayout&gt;
  </code></pre>
  <p>Also I add it my <code>item.xml</code> which my <code>Adaptor</code>  using that :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
  android:layout_width=&quot;wrap_content&quot;
  android:rotationY=&quot;180&quot;
  android:layout_height=&quot;wrap_content&quot;
  android:orientation=&quot;vertical&quot;
  android:padding=&quot;5dp&quot; &gt;
  
  &lt;ImageView
      android:id=&quot;@+id/gridimage&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginLeft=&quot;20dp&quot;
      android:layout_marginRight=&quot;29dp&quot;
      android:layout_marginTop=&quot;15dp&quot;
      android:src=&quot;@drawable/folder_icon&quot; /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  <p>But it it does not work,what should i do to make it to work?</p>