I literally just started android development and cant seem to get my text views aligned wherever I want on the screen
this is my code
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="top text"
android:textColor="white"
android:layout_gravity="top|start"
android:textSize="40sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="bottom text"
android:textSize="30sp"
android:textColor="white"
android:layout_gravity="bottom|end"/>
</LinearLayout>
The "output" that I am getting on the design tab is
top
bottom
I tried dragging and dropping the text views using Design and it added tools:layout_editor_absoluteX="138dp"
tools:layout_editor_absoluteY="344dp"
but this cant be the only way, can someone tell me what I am doing wrong.