file_transfer_fragment.xml 3.67 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

Anon's avatar
Anon committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    <EditText android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/input_destination"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintTop_toBottomOf="@id/label_selected"
              android:importantForAutofill="no"
              android:hint="@string/file_transfer_hint_destination"/>

    <TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/label_destination_help"
              android:text="@string/file_transfer_label_destination_help"
              app:layout_constraintLeft_toLeftOf="parent"
              app:layout_constraintRight_toRightOf="parent"
              app:layout_constraintTop_toBottomOf="@id/input_destination"/>

Anon's avatar
Anon committed
45
46
47
48
49
50
51
    <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"
Anon's avatar
Anon committed
52
53
            app:layout_constraintTop_toBottomOf="@id/label_destination_help"
            android:text="@string/file_transfer_button_start_transfer"/>
Anon's avatar
Anon committed
54
55
56
57
58
59
60
61

    <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
62
            app:layout_constraintTop_toBottomOf="@id/button_start_stop_transfer"/>
Anon's avatar
Anon committed
63
64
65
66
67
68
69
70
71
72

    <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
73
            app:layout_constraintTop_toBottomOf="@id/label_status"/>
Anon's avatar
Anon committed
74
75

</androidx.constraintlayout.widget.ConstraintLayout>