title: Align GridView items in Center
body: <p>I am new to android and developing one Quotes Card Maker Application. I have used GridView for display stickers with 5 Column. I am unable to arrange all columns in center of GridView . I have searched lot of and tried to make it center but its always stay in left side of GridView like this image
  <a href="https://i.stack.imgur.com/hwLFW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hwLFW.png" alt="enter image description here"></a></p>
  
  <p>My Item XML is like below</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/lnr_sticker"
      android:layout_width="60dp"
      android:layout_height="60dp"
      android:layout_gravity="center"
      android:orientation="horizontal"&gt;
  
      &lt;ImageView
          android:id="@+id/iv_image_sticker"
          android:layout_width="60dp"
          android:layout_height="60dp"
          android:layout_gravity="center"
          android:scaleType="fitXY"
          android:visibility="visible" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and GridView is like below</p>
  
  <pre><code> &lt;LinearLayout
      android:id="@+id/framecaregory"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_above="@+id/second"
      android:gravity="center"
      android:layout_alignParentTop="true"
      android:layout_marginTop="?actionBarSize"&gt;
  
      &lt;GridView
          android:id="@+id/gridviewcategory"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/lite_color"
          android:numColumns="5"
          android:gravity="center"
          android:layout_gravity="center"
          android:visibility="gone"&gt;
  
      &lt;/GridView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Let me know what I am missing. Thanks a lot to all friends who trying to help me.</p>
  
  <p>Thanks</p>