0% found this document useful (0 votes)
44 views

XML Version

This document defines the layout of a user interface with a button, edit text field, and list view. The button is positioned below the edit text and above the list view. The edit text is centered at the top. The list view takes up the remaining space at the bottom of the parent layout.

Uploaded by

Anesa Fazlagic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

XML Version

This document defines the layout of a user interface with a button, edit text field, and list view. The button is positioned below the edit text and above the list view. The edit text is centered at the top. The list view takes up the remaining space at the bottom of the parent layout.

Uploaded by

Anesa Fazlagic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

<?xml version="1.0" encoding="utf-8"?

>
<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"
tools:context=".MainActivity">

<Button
android:id="@+id/firstBtn"
android:layout_width="274dp"
android:layout_height="50dp"
android:layout_marginBottom="44dp"
android:backgroundTint="#FFFFFF"
android:text="@string/share"
app:layout_constraintBottom_toTopOf="@+id/firstListView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.562"
app:layout_constraintStart_toStartOf="parent" />

<EditText
android:id="@+id/firstEditText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="60dp"
android:ems="10"
android:hint="@string/enter_text"
android:importantForAutofill="no"
android:inputType="textPersonName"
app:layout_constraintBottom_toTopOf="@+id/firstBtn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.611"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />

<ListView
android:id="@+id/firstListView"
android:layout_width="241dp"
android:layout_height="314dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.544"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

You might also like