|
6 | 6 | android:layout_height="match_parent" |
7 | 7 | tools:context=".MainActivity"> |
8 | 8 |
|
| 9 | + |
| 10 | + <androidx.constraintlayout.widget.Guideline |
| 11 | + android:id="@+id/logoGuideline" |
| 12 | + android:layout_width="wrap_content" |
| 13 | + android:layout_height="wrap_content" |
| 14 | + android:orientation="horizontal" |
| 15 | + app:layout_constraintGuide_percent="0.2" /> |
| 16 | + |
9 | 17 | <ImageView |
10 | 18 | android:id="@+id/logoImage" |
11 | 19 | android:layout_width="wrap_content" |
12 | 20 | android:layout_height="wrap_content" |
13 | | - android:layout_marginTop="96dp" |
14 | | - android:layout_marginBottom="96dp" |
15 | 21 | android:contentDescription="The HTTP Toolkit Logo" |
16 | | - app:layout_constraintBottom_toTopOf="@+id/statusText" |
| 22 | + app:layout_constraintBottom_toBottomOf="@+id/logoGuideline" |
| 23 | + app:layout_constraintTop_toTopOf="@+id/logoGuideline" |
17 | 24 | app:layout_constraintEnd_toEndOf="parent" |
18 | 25 | app:layout_constraintStart_toStartOf="parent" |
19 | | - app:layout_constraintTop_toTopOf="parent" |
20 | 26 | app:srcCompat="@drawable/ic_transparent_icon" /> |
21 | 27 |
|
| 28 | + |
| 29 | + <androidx.constraintlayout.widget.Guideline |
| 30 | + android:id="@+id/statusGuideline" |
| 31 | + android:layout_width="wrap_content" |
| 32 | + android:layout_height="wrap_content" |
| 33 | + android:orientation="horizontal" |
| 34 | + app:layout_constraintGuide_percent="0.4" /> |
| 35 | + |
22 | 36 | <TextView |
23 | 37 | android:id="@+id/statusText" |
24 | 38 | style="@style/StatusText" |
|
28 | 42 | android:layout_marginEnd="8dp" |
29 | 43 | android:layout_marginBottom="8dp" |
30 | 44 | android:text="Not Connected" |
31 | | - app:layout_constraintBottom_toTopOf="@+id/detailText" |
| 45 | + app:layout_constraintBottom_toBottomOf="@+id/statusGuideline" |
| 46 | + app:layout_constraintTop_toTopOf="@+id/statusGuideline" |
32 | 47 | app:layout_constraintEnd_toEndOf="parent" |
33 | | - app:layout_constraintStart_toStartOf="parent" |
34 | | - app:layout_constraintTop_toBottomOf="@+id/logoImage" /> |
| 48 | + app:layout_constraintStart_toStartOf="parent" /> |
35 | 49 |
|
36 | 50 | <TextView |
37 | 51 | android:id="@+id/detailText" |
|
0 commit comments