Skip to content

Commit 4779971

Browse files
authored
Update activity_main.xml
1 parent ae4cd36 commit 4779971

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

misc/src/main/res/layout/activity_main.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,28 @@
22
<!-- For activity embedding snippets. -->
33
<androidx.constraintlayout.widget.ConstraintLayout
44
xmlns:android="http://schemas.android.com/apk/res/android"
5+
xmlns:app="http://schemas.android.com/apk/res-auto"
56
android:layout_width="match_parent"
67
android:layout_height="match_parent">
78

89
<Button
10+
android:id="@+id/infoButton"
911
android:text="Info"
1012
android:layout_width="wrap_content"
1113
android:layout_height="wrap_content"
12-
android:id="@+id/infoButton"/>
14+
app:layout_constraintBottom_toBottomOf="parent"
15+
app:layout_constraintLeft_toLeftOf="parent"
16+
app:layout_constraintRight_toRightOf="@id/pinButton"
17+
app:layout_constraintTop_toTopOf="parent" />
1318

1419
<Button
20+
android:id="@+id/pinButton"
1521
android:text="Pin"
1622
android:layout_width="wrap_content"
1723
android:layout_height="wrap_content"
18-
android:id="@+id/pinButton"/>
24+
app:layout_constraintBottom_toBottomOf="parent"
25+
app:layout_constraintLeft_toLeftOf="@id/infoButton"
26+
app:layout_constraintRight_toRightOf="parent"
27+
app:layout_constraintTop_toTopOf="parent" />
1928

2029
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)