• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  Copyright 2015 Google Inc. All rights reserved.
3
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15  -->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical"
23    tools:context=".AttractionListFragment">
24
25    <com.example.android.xyztouristattractions.ui.AttractionsRecyclerView
26        android:id="@android:id/list"
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:scrollbars="vertical"
30        app:layoutManager="GridLayoutManager"
31        app:spanCount="@integer/list_columns" />
32
33    <TextView
34        android:id="@android:id/empty"
35        android:text="@string/empty_list"
36        style="?android:attr/textAppearanceMedium"
37        android:layout_width="match_parent"
38        android:layout_height="match_parent"
39        android:layout_gravity="center"
40        android:gravity="center" />
41
42</LinearLayout>
43