title: Layout Gravity problem: android:layout_gravity="end"
body: <p>I'm new at starting learning Android Studio and I'm having some trouble here. on this explanation of the code, I'm supposed to see the Hello world stick to the right but he doesn't wanna move from the left. Here is what is expected :
  <a href="https://i.stack.imgur.com/1gB67.png" rel="nofollow noreferrer">result expected</a> and what I'm having <a href="https://i.stack.imgur.com/Kr2Pz.png" rel="nofollow noreferrer">result at the moment</a>.</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:visibility="visible"
      tools:context=".MainActivity"&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="end"
          android:gravity="center"
          android:text="Hello World!" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>