Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
.google/ | 21-Oct-2016 | ||
Application/ | 21-Oct-2016 | ||
build.gradle | 21-Oct-2016 | 14 | |
CONTRIB.md | 21-Oct-2016 | 1.6K | |
CONTRIBUTING.md | 21-Oct-2016 | 1.5K | |
gradle/ | 21-Oct-2016 | ||
gradlew | 21-Oct-2016 | 5K | |
gradlew.bat | 21-Oct-2016 | 2.3K | |
LICENSE | 21-Oct-2016 | 31.5K | |
packaging.yaml | 21-Oct-2016 | 527 | |
README.md | 21-Oct-2016 | 2.9K | |
screenshots/ | 21-Oct-2016 | ||
settings.gradle | 21-Oct-2016 | 22 |
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 24 33 - Android Build Tools v24.0.1 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 2016 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