title: How can I align my ImageView with my TextView in a LinearLayout?
body: <p>I have the following ImageView and TextView:
  <img src="https://i.stack.imgur.com/FvwuQ.png" alt="enter image description here"></p>
  
  <p>Here is the XML:</p>
  
  <pre><code>&lt;LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/headerLinearLay" android:orientation="horizontal"&gt;
          &lt;ImageView android:src="@drawable/icon" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/avatarImageView"&gt;&lt;/ImageView&gt;
          &lt;TextView android:layout_height="wrap_content" android:id="@+id/usernameTextView" android:text="TextView" android:layout_width="wrap_content" android:paddingLeft="4px"&gt;&lt;/TextView&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>How can I make the image and the text be positioned at the same height? I also want the ImageView to be in the corner</p>