Adjust main layout

This commit is contained in:
Miguel 2022-05-31 18:03:30 -05:00
parent c0801b1d8c
commit d1ca1cd249

View File

@ -6,13 +6,62 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp"
>
<TextView
android:id="@+id/title"
android:text="@string/app_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:textAlignment="center"
/>
<TextView
android:id="@+id/status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:textAlignment="center"
android:textSize="16sp"
/>
<EditText
android:id="@+id/url"
android:layout_width="321dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:layout_margin="10dp"
android:text="@string/url_example"
android:textAlignment="center"
/>
<Button
android:id="@+id/get"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_margin="10dp"
android:text="@string/get"
/>
<TextView
android:id="@+id/log_viewer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="10dp"
android:textAlignment="center"
android:textSize="16sp"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>