|
27 | 27 |
|
28 | 28 | <ImageView
|
29 | 29 | android:id="@+id/syncIcon"
|
30 |
| - android:layout_width="wrap_content" |
31 |
| - android:layout_height="wrap_content" |
32 |
| - android:layout_marginTop="@dimen/big_margin" |
| 30 | + android:layout_width="@dimen/small_icon_size" |
| 31 | + android:layout_height="@dimen/small_icon_size" |
33 | 32 | android:contentDescription="@null"
|
34 |
| - android:src="@drawable/ic_sync_todo" |
35 |
| - app:layout_constraintBottom_toTopOf="@+id/syncInfo" |
36 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 33 | + android:layout_marginEnd="@dimen/small_margin" |
| 34 | + app:layout_constraintBottom_toBottomOf="@id/syncInfo" |
| 35 | + app:layout_constraintEnd_toStartOf="@id/syncInfo" |
| 36 | + app:layout_constraintHorizontal_chainStyle="packed" |
37 | 37 | app:layout_constraintStart_toStartOf="parent"
|
38 |
| - app:layout_constraintTop_toBottomOf="@id/formsList" |
39 |
| - app:layout_constraintVertical_chainStyle="packed" /> |
| 38 | + app:layout_constraintTop_toTopOf="@id/syncInfo" |
| 39 | + app:layout_constraintVertical_bias="0" |
| 40 | + app:srcCompat="@drawable/ic_sync_label_icon" /> |
40 | 41 |
|
41 | 42 | <TextView
|
42 | 43 | android:id="@+id/syncInfo"
|
43 | 44 | style="@style/Text.Label.Small"
|
44 |
| - android:layout_width="match_parent" |
| 45 | + android:layout_width="0dp" |
45 | 46 | android:layout_height="wrap_content"
|
46 |
| - android:layout_marginTop="@dimen/small_margin" |
47 |
| - android:gravity="center" |
| 47 | + android:layout_marginTop="@dimen/big_margin" |
48 | 48 | android:paddingStart="@dimen/small_margin"
|
49 | 49 | android:paddingEnd="@dimen/small_margin"
|
50 | 50 | android:text="@string/sync_info"
|
51 |
| - app:layout_constraintBottom_toTopOf="@+id/syncButton" |
52 |
| - app:layout_constraintTop_toBottomOf="@id/syncIcon" |
53 |
| - app:layout_constraintVertical_chainStyle="packed" /> |
| 51 | + app:layout_constraintBottom_toTopOf="@id/syncButton" |
| 52 | + app:layout_constraintEnd_toEndOf="parent" |
| 53 | + app:layout_constraintHorizontal_chainStyle="packed" |
| 54 | + app:layout_constraintStart_toEndOf="@id/syncIcon" |
| 55 | + app:layout_constraintTop_toBottomOf="@id/formsList" /> |
54 | 56 |
|
55 | 57 | <Button
|
56 | 58 | android:id="@+id/syncButton"
|
|
68 | 70 | android:layout_height="0dp"
|
69 | 71 | android:visibility="gone"
|
70 | 72 | app:constraint_referenced_ids="syncButton,syncIcon,syncInfo"
|
| 73 | + tools:layout_editor_absoluteX="16dp" |
| 74 | + tools:layout_editor_absoluteY="24dp" |
71 | 75 | tools:visibility="visible" />
|
| 76 | + |
| 77 | + <ImageView |
| 78 | + android:id="@+id/syncIconSuccess" |
| 79 | + android:layout_width="@dimen/small_icon_size" |
| 80 | + android:layout_height="@dimen/small_icon_size" |
| 81 | + android:contentDescription="@null" |
| 82 | + app:layout_constraintBottom_toBottomOf="@id/syncInfoSuccess" |
| 83 | + app:layout_constraintEnd_toStartOf="@id/syncInfoSuccess" |
| 84 | + app:layout_constraintHorizontal_chainStyle="packed" |
| 85 | + app:layout_constraintStart_toStartOf="parent" |
| 86 | + app:layout_constraintTop_toTopOf="@id/syncInfoSuccess" |
| 87 | + app:srcCompat="@drawable/ic_synced" /> |
| 88 | + |
| 89 | + <TextView |
| 90 | + android:id="@+id/syncInfoSuccess" |
| 91 | + style="@style/Text.Label.Small" |
| 92 | + android:layout_width="wrap_content" |
| 93 | + android:layout_height="wrap_content" |
| 94 | + android:layout_marginTop="@dimen/big_margin" |
| 95 | + android:paddingStart="@dimen/small_margin" |
| 96 | + android:paddingEnd="@dimen/small_margin" |
| 97 | + android:text="@string/sync_info_success" |
| 98 | + app:layout_constraintEnd_toEndOf="parent" |
| 99 | + app:layout_constraintHorizontal_chainStyle="packed" |
| 100 | + app:layout_constraintStart_toEndOf="@id/syncIconSuccess" |
| 101 | + app:layout_constraintTop_toBottomOf="@id/formsList" /> |
| 102 | + |
| 103 | + <androidx.constraintlayout.widget.Group |
| 104 | + android:id="@+id/syncSuccessGroup" |
| 105 | + android:layout_width="0dp" |
| 106 | + android:layout_height="0dp" |
| 107 | + android:visibility="gone" |
| 108 | + app:constraint_referenced_ids="syncIconSuccess,syncInfoSuccess" |
| 109 | + tools:visibility="gone" /> |
| 110 | + |
72 | 111 | </androidx.constraintlayout.widget.ConstraintLayout>
|
73 | 112 |
|
74 | 113 | </androidx.core.widget.NestedScrollView>
|
0 commit comments