file_transfer_fragment.xml 2.8 KB
Newer Older
Anon's avatar
Anon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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"
                                                   android:layout_width="match_parent"
                                                   android:layout_height="match_parent"
                                                   android:padding="@dimen/activity_padding">

    <Button
            android:id="@+id/button_pick_file"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent"
Anon's avatar
Anon committed
15
            android:text="@string/file_transfer_button_pick_file"/>
Anon's avatar
Anon committed
16
17
18
19
20
21
22
23
24
25

    <TextView
            android:id="@+id/label_selected"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/send_label_margin"
            android:gravity="center"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toBottomOf="@id/button_pick_file"
Anon's avatar
Anon committed
26
            android:text="@string/file_transfer_label_no_file_selected"/>
Anon's avatar
Anon committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

    <Button
            android:id="@+id/button_start_stop_transfer"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/send_label_margin"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toBottomOf="@id/label_selected"
            android:text="@string/file_transfer_button_start_transfer" />

    <TextView
            android:id="@+id/label_status"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/send_label_margin"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
Anon's avatar
Anon committed
45
            app:layout_constraintTop_toBottomOf="@id/button_start_stop_transfer"/>
Anon's avatar
Anon committed
46
47
48
49
50
51
52
53
54
55

    <ProgressBar
            android:id="@+id/progress"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:indeterminate="true"
            android:visibility="invisible"
            android:layout_marginTop="@dimen/send_label_margin"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
Anon's avatar
Anon committed
56
            app:layout_constraintTop_toBottomOf="@id/label_status"/>
Anon's avatar
Anon committed
57
58

</androidx.constraintlayout.widget.ConstraintLayout>