blob: 91d900fff0a96bbe815b8a1fe5073134250fb967 [file] [log] [blame]
<!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="fill_parent"
android:layout_height="100dp"
app:layoutManager="GridLayoutManager"
android:orientation="horizontal"
app:spanCount="3"
app:reverseLayout="true" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView2"
android:layout_width="fill_parent"
android:layout_height="100dp"
app:layoutManager=".CustomLayoutManager"
android:orientation="vertical"
app:stackFromEnd="true" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView3"
android:layout_width="fill_parent"
android:layout_height="100dp"
app:layoutManager=".CustomLayoutManager$LayoutManager" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView4"
android:layout_width="fill_parent"
android:layout_height="100dp"
app:layoutManager=".PrivateLayoutManager" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView5"
android:layout_width="fill_parent"
android:layout_height="100dp" />
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView6"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:nestedScrollingEnabled="false" />
<android.support.v7.widget.RecyclerView
android:id="@+id/focusability_undefined"
android:layout_width="fill_parent"
android:layout_height="100dp"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/focusability_after"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:descendantFocusability="afterDescendants"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/focusability_before"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:descendantFocusability="beforeDescendants"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/focusability_block"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:descendantFocusability="blocksDescendants"/>
</LinearLayout>