• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2015 The Android Open Source Project
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:app="http://schemas.android.com/apk/res-auto"
19    android:orientation="vertical"
20    android:layout_width="fill_parent"
21    android:layout_height="fill_parent">
22
23    <android.support.v7.widget.RecyclerView
24        android:id="@+id/recyclerView"
25        android:layout_width="fill_parent"
26        android:layout_height="100dp"
27        app:layoutManager="GridLayoutManager"
28        android:orientation="horizontal"
29        app:spanCount="3"
30        app:reverseLayout="true" />
31
32    <android.support.v7.widget.RecyclerView
33        android:id="@+id/recyclerView2"
34        android:layout_width="fill_parent"
35        android:layout_height="100dp"
36        app:layoutManager=".CustomLayoutManager"
37        android:orientation="vertical"
38        app:stackFromEnd="true" />
39
40    <android.support.v7.widget.RecyclerView
41        android:id="@+id/recyclerView3"
42        android:layout_width="fill_parent"
43        android:layout_height="100dp"
44        app:layoutManager=".CustomLayoutManager$LayoutManager" />
45
46    <android.support.v7.widget.RecyclerView
47            android:id="@+id/recyclerView4"
48            android:layout_width="fill_parent"
49            android:layout_height="100dp"
50            app:layoutManager=".PrivateLayoutManager" />
51</LinearLayout>