• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.google/23-Mar-2024-2115

app/23-Mar-2024-1,452615

gradle/wrapper/23-Mar-2024-65

README.mdD23-Mar-20242.9 KiB7955

build.gradleD23-Mar-2024644 2823

gradle.propertiesD23-Mar-2024730 1813

gradlewD23-Mar-20245.2 KiB173128

gradlew.batD23-Mar-20242.2 KiB8561

settings.gradleD23-Mar-202415 21

README.md

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