activity_take_picture.xml 2.31 KB
Newer Older
Pyone Thant Win's avatar
Pyone Thant Win committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
Pyone Thant Win's avatar
Pyone Thant Win committed
3
4
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
5
    android:id="@+id/coordinatorLayout"
Pyone Thant Win's avatar
Pyone Thant Win committed
6
7
8
9
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".take_picture">

10
11
12
13
14
    <Button
        android:id="@+id/btn_cam"
        android:layout_width="126dp"
        android:layout_height="55dp"
        android:layout_marginStart="142dp"
Pyone Thant Win's avatar
Pyone Thant Win committed
15
        android:layout_marginTop="50dp"
16
        android:layout_marginEnd="143dp"
Pyone Thant Win's avatar
Pyone Thant Win committed
17
        android:layout_marginBottom="50dp"
18
19
        android:onClick="btn_cam"
        android:text="Open Camera"
Pyone Thant Win's avatar
Pyone Thant Win committed
20
        app:layout_constraintBottom_toTopOf="@+id/btn_next"
21
22
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
Pyone Thant Win's avatar
Pyone Thant Win committed
23
        app:layout_constraintTop_toBottomOf="@+id/imageView" />
Pyone Thant Win's avatar
Pyone Thant Win committed
24

25
26
    <ImageView
        android:id="@+id/imageView"
Pyone Thant Win's avatar
Pyone Thant Win committed
27
28
        android:layout_width="303dp"
        android:layout_height="317dp"
29
        android:layout_marginStart="80dp"
Pyone Thant Win's avatar
Pyone Thant Win committed
30
        android:layout_marginTop="170dp"
31
        android:layout_marginEnd="81dp"
Pyone Thant Win's avatar
Pyone Thant Win committed
32
        android:layout_marginBottom="50dp"
33
34
        app:layout_constraintBottom_toTopOf="@+id/btn_cam"
        app:layout_constraintEnd_toEndOf="parent"
Pyone Thant Win's avatar
Pyone Thant Win committed
35
        app:layout_constraintHorizontal_bias="0.507"
36
37
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
Pyone Thant Win's avatar
Pyone Thant Win committed
38
        app:layout_constraintVertical_bias="1.0"
39
        app:srcCompat="@mipmap/ic_launcher" />
Pyone Thant Win's avatar
Pyone Thant Win committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

    <Button
        android:id="@+id/btn_next"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="162dp"
        android:layout_marginTop="44dp"
        android:layout_marginEnd="162dp"
        android:layout_marginBottom="50dp"
        android:text="Next"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.496"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/btn_cam" />
55
</androidx.constraintlayout.widget.ConstraintLayout>