|
15 | 15 | limitations under the License.
|
16 | 16 | -->
|
17 | 17 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
18 |
| - xmlns:app="http://schemas.android.com/apk/res-auto" |
19 |
| - xmlns:tools="http://schemas.android.com/tools" |
20 |
| - android:layout_width="match_parent" |
21 |
| - android:layout_height="match_parent" |
22 |
| - android:orientation="vertical" |
23 |
| - tools:context="com.example.android.mediacontroller.LaunchActivity"> |
| 18 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 19 | + xmlns:tools="http://schemas.android.com/tools" |
| 20 | + android:layout_width="match_parent" |
| 21 | + android:layout_height="match_parent" |
| 22 | + android:orientation="vertical" |
| 23 | + tools:context="com.example.android.mediacontroller.LaunchActivity"> |
24 | 24 |
|
25 | 25 | <android.support.design.widget.AppBarLayout
|
26 | 26 | android:layout_width="match_parent"
|
|
32 | 32 | android:layout_width="match_parent"
|
33 | 33 | android:layout_height="?attr/actionBarSize"
|
34 | 34 | android:background="?attr/colorPrimary"
|
35 |
| - app:popupTheme="@style/AppTheme.PopupOverlay" /> |
| 35 | + app:popupTheme="@style/AppTheme.PopupOverlay"/> |
36 | 36 |
|
37 | 37 | android.support.design.widget.AppBarLayout>
|
38 | 38 |
|
|
41 | 41 | android:layout_width="match_parent"
|
42 | 42 | android:layout_height="match_parent"
|
43 | 43 | app:layoutManager=""
|
44 |
| - tools:visibility="gone" /> |
| 44 | + tools:visibility="gone"/> |
45 | 45 |
|
46 |
| - <FrameLayout |
| 46 | + <LinearLayout |
47 | 47 | android:id="@+id/no_apps_found"
|
48 | 48 | android:layout_width="match_parent"
|
49 |
| - android:layout_height="match_parent"> |
| 49 | + android:layout_height="match_parent" |
| 50 | + android:gravity="center_vertical" |
| 51 | + android:orientation="vertical"> |
50 | 52 |
|
51 |
| - <LinearLayout |
52 |
| - android:orientation="vertical" |
53 |
| - android:layout_gravity="center" |
| 53 | + <ImageView |
54 | 54 | android:layout_width="match_parent"
|
55 |
| - android:layout_height="wrap_content"> |
| 55 | + android:layout_height="wrap_content" |
| 56 | + android:layout_gravity="center_horizontal" |
| 57 | + app:srcCompat="@drawable/ic_no_apps_black_24dp" |
| 58 | + tools:ignore="contentDescription"/> |
56 | 59 |
|
57 |
| - <TextView |
58 |
| - android:layout_width="match_parent" |
59 |
| - android:layout_height="wrap_content" |
60 |
| - android:drawableTop="@drawable/ic_no_apps_black_24dp" |
61 |
| - android:gravity="center" |
62 |
| - android:textSize="@dimen/error_text_size" |
63 |
| - android:text="@string/no_apps_found" /> |
| 60 | + <TextView |
| 61 | + android:layout_width="match_parent" |
| 62 | + android:layout_height="wrap_content" |
| 63 | + android:gravity="center" |
| 64 | + android:text="@string/no_apps_found" |
| 65 | + android:textSize="@dimen/error_text_size"/> |
64 | 66 |
|
65 |
| - <TextView |
66 |
| - android:layout_width="match_parent" |
67 |
| - android:layout_height="wrap_content" /> |
68 |
| - LinearLayout> |
69 |
| - FrameLayout> |
| 67 | + <TextView |
| 68 | + android:layout_width="match_parent" |
| 69 | + android:layout_height="wrap_content"/> |
| 70 | + LinearLayout> |
70 | 71 | LinearLayout>
|
0 commit comments