Complex RecyclerView in Kotlin.
Hi guys, I have made demo application for ComplexRecyclerView in Kotlin. This is the open project for any contributer who want to improve something here.
This Sample show list of users along with their items with pagination and many other things. offset : Position where you need to start your users. limit: number of users you want to fetch in single hit.
- User items images are square.
- Horizontal and vertical spacings between every image are equal.
- If items are even, then display them 2 in each row.
- If items are odd, display the first one to span the full row, and show the remaining spanning 2 in each row.
- Implemented pagination.
You can checkout Youtube video.
It usage of following libraries:
-
Retrofit2 for REST API.
-
RX java for background process and Retrofit integration.
-
Dagger2 for dependency injection.
-
Glide for image loading.
-
Fabric for crashlytics.
-
Timber for logging.
It uses MVP (Model View Presenter) pattern. MVP is a derivative from the well known MVC (Model View Controller), which for a while now is gaining importance in the development of Android applications.This project also contains basic utility classes required for day to day programming.
Utils classes.
#Start from
minSdkVersion 16
#LICENSE
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.
#Authors
Saveen Dhiman original Author