|
21 | 21 |
|
22 | 22 | </com.google.android.material.appbar.AppBarLayout> |
23 | 23 |
|
24 | | - <RelativeLayout |
| 24 | + <androidx.constraintlayout.widget.ConstraintLayout |
25 | 25 | android:id="@+id/main_holder" |
26 | 26 | android:layout_width="match_parent" |
27 | 27 | android:layout_height="match_parent" |
|
30 | 30 | <com.simplemobiletools.commons.views.MyViewPager |
31 | 31 | android:id="@+id/view_pager" |
32 | 32 | android:layout_width="match_parent" |
33 | | - android:layout_height="match_parent" |
34 | | - android:layout_above="@+id/main_tabs_holder" /> |
| 33 | + android:layout_height="0dp" |
| 34 | + app:layout_constraintBottom_toTopOf="@+id/main_tabs_holder" |
| 35 | + app:layout_constraintTop_toTopOf="parent" /> |
35 | 36 |
|
36 | 37 | <ImageView |
37 | 38 | android:id="@+id/main_dialpad_button" |
38 | 39 | android:layout_width="@dimen/dialpad_button_size" |
39 | 40 | android:layout_height="@dimen/dialpad_button_size" |
40 | | - android:layout_above="@+id/main_tabs_holder" |
41 | | - android:layout_centerHorizontal="true" |
42 | 41 | android:layout_marginBottom="@dimen/activity_margin" |
43 | 42 | android:background="@drawable/circle_background" |
44 | 43 | android:contentDescription="@string/dialpad" |
45 | 44 | android:elevation="@dimen/medium_margin" |
46 | 45 | android:padding="@dimen/activity_margin" |
47 | | - android:src="@drawable/ic_dialpad_vector" /> |
| 46 | + android:src="@drawable/ic_dialpad_vector" |
| 47 | + app:layout_constraintBottom_toTopOf="@+id/main_tabs_holder" |
| 48 | + app:layout_constraintEnd_toEndOf="parent" |
| 49 | + app:layout_constraintStart_toStartOf="parent" /> |
48 | 50 |
|
49 | 51 | <com.google.android.material.tabs.TabLayout |
50 | 52 | android:id="@+id/main_tabs_holder" |
51 | 53 | android:layout_width="match_parent" |
52 | 54 | android:layout_height="wrap_content" |
53 | | - android:layout_alignParentBottom="true" |
| 55 | + app:layout_constraintBottom_toBottomOf="parent" |
54 | 56 | app:tabIndicator="@null" |
55 | 57 | app:tabMinWidth="150dp" |
56 | 58 | app:tabRippleColor="@null" /> |
57 | 59 |
|
58 | | - </RelativeLayout> |
| 60 | + </androidx.constraintlayout.widget.ConstraintLayout> |
59 | 61 | </androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments