Skip to content

Commit a71f8e3

Browse files
committed
with Relative Layout and test
1 parent 190f937 commit a71f8e3

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed
883 KB
Loading
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
@@ -8,23 +8,21 @@
88

99
<ImageView
1010
android:id="@+id/imgVO"
11-
android:layout_width="wrap_content"
12-
android:layout_height="wrap_content"
13-
android:layout_marginTop="95dp"
11+
android:layout_width="279dp"
12+
android:layout_height="416dp"
13+
android:src="@drawable/friends"
1414
app:layout_constraintEnd_toEndOf="parent"
1515
app:layout_constraintStart_toStartOf="parent"
1616
app:layout_constraintTop_toTopOf="parent"
17-
tools:srcCompat="@tools:sample/avatars" />
17+
android:layout_centerHorizontal="true"/>
1818

1919
<Button
2020
android:id="@+id/btnDetect"
2121
android:layout_width="wrap_content"
2222
android:layout_height="wrap_content"
2323
android:layout_marginBottom="76dp"
2424
android:text="Detect"
25-
app:layout_constraintBottom_toBottomOf="parent"
26-
app:layout_constraintEnd_toEndOf="@+id/imgVO"
27-
app:layout_constraintStart_toStartOf="@+id/imgVO"
28-
app:layout_constraintTop_toBottomOf="@+id/imgVO" />
25+
android:layout_centerHorizontal="true"
26+
android:layout_below="@id/imgVO"/>
2927

30-
</androidx.constraintlayout.widget.ConstraintLayout>
28+
</RelativeLayout>

0 commit comments

Comments
 (0)