title: How to position textview to the bottom right corner of the button using linear layout
body: <p>I am designing the login logout but stuck in designing. I want to put the text view to the right corner of the button using a linear layout. It must not change its view in landscape mode.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;androidx.constraintlayout.widget.ConstraintLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/colorPrimaryDark"
  tools:context=".ForgotPassword"&gt;
  
  &lt;androidx.appcompat.widget.LinearLayoutCompat
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintVertical_bias="0.329" &gt;
  
      &lt;Button
          android:id="@+id/sendlink"
          android:layout_width="236dp"
          android:layout_height="51dp"
          android:layout_marginTop="20dp"
          android:layout_gravity="center"
          android:onClick="send_link"
          android:text="SEND  LINK"
          android:textSize="18sp"/&gt;
  
      &lt;androidx.appcompat.widget.LinearLayoutCompat
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"   
          android:textAlignment="textEnd"       //here i need to manage that situation
          android:layout_gravity="end"
          android:layout_marginRight="90dp"&gt;
  
          &lt;TextView
              android:id="@+id/textView2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="or"
              android:textColor="#FD050000"
              android:textSize="18sp"/&gt;
  
          &lt;TextView
              android:id="@+id/login"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:onClick="login"
              android:layout_marginLeft="5dp"
              android:text="Login?"
              android:textColor="#071041"
              android:textSize="16sp"/&gt;
  
      &lt;/androidx.appcompat.widget.LinearLayoutCompat&gt;
  
    &lt;/androidx.appcompat.widget.LinearLayoutCompat&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p><strong>Please help I expect that the text "or Logout" must be positioned at the bottom of the right corner of the "SEND LINK" button.</strong></p>