title: Center text items in ListView
body: <p>How can I horizontally center-align text items of the <code>ListView</code> in my <code>Layout</code>? <br>
  Honestly, I googled for at least an hour before asking such a basic question.</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      tools:context=".MainActivity" &gt;
  
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:hint="Remind..." /&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="200dp"
          android:baselineAligned="false"
          android:orientation="horizontal" &gt;
  
          &lt;ListView
              android:id="@+id/listviewTimeInterval"
              android:layout_width="0dp"
              android:layout_height="match_parent"
              android:layout_weight="1"
              android:scrollbars="none" /&gt;
  
           &lt;-- . . . --/&gt;
           &lt;-- more lists of the same kind--/&gt;
           &lt;-- . . .--/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>