title: How can I allign my text correctly in Android studio?
body: <p>In my app I currently have two text views in an alert dialog to display the temperature and the weather description. The problem with this is that whenever the description changes, the alignment changes.</p>
  
  <p>I tried having my layout as a relative layout and move around both of them with one depending on the other but this does not help me out. Any suggestions?</p>
  
  <p>This is my current code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 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"&gt;
  
  
      &lt;TextView
          android:id="@+id/climaText"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_alignStart="@+id/desc"
          android:layout_marginTop="18dp"
          android:layout_marginStart="120dp"
          android:textColor="@android:color/white" /&gt;
  
      &lt;TextView
          android:id="@+id/desc"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/climaText"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="13dp"
          android:textColor="@android:color/white" /&gt;
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>