Home | History | Annotate | only in /developers/samples/android/ui/views/RecyclerView
Up to higher level directory
NameDateSize
Application/08-Oct-2015
build.gradle08-Oct-2015263
buildSrc/08-Oct-2015
CONTRIB.md08-Oct-20151.6K
gradle/08-Oct-2015
gradlew08-Oct-20155K
gradlew.bat08-Oct-20152.3K
LICENSE08-Oct-201531.5K
packaging.yaml08-Oct-2015527
README.md08-Oct-20152.9K
screenshots/08-Oct-2015
settings.gradle08-Oct-201522
template-params.xml08-Oct-20153.6K

README.md

      1 
      2 Android RecyclerView Sample
      3 ===================================
      4 
      5 Sample demonstrating the use of RecyclerView to layout elements with a
      6 LinearLayoutManager and with a GridLayoutManager. It also demonstrates
      7 how to handle touch events on elements.
      8 
      9 Introduction
     10 ------------
     11 
     12 Sample demonstrating the use of [RecyclerView][1] to layout elements with a
     13 [LinearLayoutManager][2] or with a [GridLayoutManager][3].
     14 
     15 [RecyclerView][1] can display large datasets that can be scrolled
     16 efficiently by recycling a limited number of views. Click listeners can be
     17 defined when [ViewHolder][4] views are instantiated. [RecyclerView][1] is
     18 available in the v7 Support Library, thus compatible with API level 7 and above.
     19 
     20 Tap "Show Log" menu item to display log of elements as they are laid out and
     21 tapped. Use radio buttons to toggle between [LinearLayoutManager][2] and
     22 [GridLayoutManager][3].
     23 
     24 [1]: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html
     25 [2]: https://developer.android.com/reference/android/support/v7/widget/LinearLayoutManager.html
     26 [3]: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html
     27 [4]: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ViewHolder.html
     28 
     29 Pre-requisites
     30 --------------
     31 
     32 - Android SDK v23
     33 - Android Build Tools v23.0.0
     34 - Android Support Repository
     35 
     36 Screenshots
     37 -------------
     38 
     39 <img src="screenshots/1-linear.png" height="400" alt="Screenshot"/> <img src="screenshots/2-grid.png" height="400" alt="Screenshot"/> 
     40 
     41 Getting Started
     42 ---------------
     43 
     44 This sample uses the Gradle build system. To build this project, use the
     45 "gradlew build" command or use "Import Project" in Android Studio.
     46 
     47 Support
     48 -------
     49 
     50 - Google+ Community: https://plus.google.com/communities/105153134372062985968
     51 - Stack Overflow: http://stackoverflow.com/questions/tagged/android
     52 
     53 If you've found an error in this sample, please file an issue:
     54 https://github.com/googlesamples/android-RecyclerView
     55 
     56 Patches are encouraged, and may be submitted by forking this project and
     57 submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
     58 
     59 License
     60 -------
     61 
     62 Copyright 2014 The Android Open Source Project, Inc.
     63 
     64 Licensed to the Apache Software Foundation (ASF) under one or more contributor
     65 license agreements.  See the NOTICE file distributed with this work for
     66 additional information regarding copyright ownership.  The ASF licenses this
     67 file to you under the Apache License, Version 2.0 (the "License"); you may not
     68 use this file except in compliance with the License.  You may obtain a copy of
     69 the License at
     70 
     71 http://www.apache.org/licenses/LICENSE-2.0
     72 
     73 Unless required by applicable law or agreed to in writing, software
     74 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
     75 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
     76 License for the specific language governing permissions and limitations under
     77 the License.
     78