|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - android:id="@+id/main_holder" |
| 2 | +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:id="@+id/main_coordinator" |
4 | 5 | android:layout_width="match_parent" |
5 | 6 | android:layout_height="match_parent"> |
6 | 7 |
|
7 | | - <RelativeLayout |
8 | | - android:id="@+id/change_keyboard_holder" |
9 | | - android:layout_width="wrap_content" |
10 | | - android:layout_height="wrap_content" |
11 | | - android:layout_margin="@dimen/big_margin"> |
| 8 | + <com.google.android.material.appbar.AppBarLayout |
| 9 | + android:id="@+id/main_app_bar_layout" |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content"> |
12 | 12 |
|
13 | | - <android.widget.TextView |
14 | | - android:id="@+id/change_keyboard" |
15 | | - style="@style/ColoredButtonStyle" |
16 | | - android:layout_width="wrap_content" |
17 | | - android:layout_height="wrap_content" |
18 | | - android:text="@string/change_keyboard" /> |
| 13 | + <com.google.android.material.appbar.MaterialToolbar |
| 14 | + android:id="@+id/main_toolbar" |
| 15 | + android:layout_width="match_parent" |
| 16 | + android:layout_height="?attr/actionBarSize" |
| 17 | + android:background="@color/color_primary" |
| 18 | + app:menu="@menu/menu_main" |
| 19 | + app:title="@string/app_launcher_name" |
| 20 | + app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" /> |
19 | 21 |
|
20 | | - </RelativeLayout> |
| 22 | + </com.google.android.material.appbar.AppBarLayout> |
21 | 23 |
|
22 | | - <com.simplemobiletools.commons.views.MyEditText |
23 | | - android:id="@+id/text_edittext" |
| 24 | + <androidx.core.widget.NestedScrollView |
| 25 | + android:id="@+id/main_nested_scrollview" |
24 | 26 | android:layout_width="match_parent" |
25 | | - android:layout_height="wrap_content" |
26 | | - android:layout_below="@+id/change_keyboard_holder" |
27 | | - android:layout_margin="@dimen/activity_margin" /> |
| 27 | + android:layout_height="match_parent" |
| 28 | + android:fillViewport="true" |
| 29 | + android:scrollbars="none" |
| 30 | + app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
| 31 | + |
| 32 | + <RelativeLayout |
| 33 | + android:id="@+id/change_keyboard_wrapper" |
| 34 | + android:layout_width="match_parent" |
| 35 | + android:layout_height="wrap_content"> |
| 36 | + |
| 37 | + <RelativeLayout |
| 38 | + android:id="@+id/change_keyboard_holder" |
| 39 | + android:layout_width="wrap_content" |
| 40 | + android:layout_height="wrap_content" |
| 41 | + android:layout_margin="@dimen/normal_margin"> |
| 42 | + |
| 43 | + <android.widget.TextView |
| 44 | + android:id="@+id/change_keyboard" |
| 45 | + style="@style/ColoredButtonStyle" |
| 46 | + android:layout_width="wrap_content" |
| 47 | + android:layout_height="wrap_content" |
| 48 | + android:text="@string/change_keyboard" /> |
| 49 | + |
| 50 | + </RelativeLayout> |
| 51 | + |
| 52 | + <com.simplemobiletools.commons.views.MyEditText |
| 53 | + android:id="@+id/text_edittext" |
| 54 | + android:layout_width="match_parent" |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:layout_below="@+id/change_keyboard_holder" |
| 57 | + android:layout_margin="@dimen/activity_margin" /> |
28 | 58 |
|
29 | | -</RelativeLayout> |
| 59 | + </RelativeLayout> |
| 60 | + </androidx.core.widget.NestedScrollView> |
| 61 | +</androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments