All Projects → ChathuraHettiarachchi → RecycleClick

ChathuraHettiarachchi / RecycleClick

Licence: Apache-2.0 license
Android recycler view not supports for onItemClickListner event. This library helps to wrap up and gain the missing recycle view item click and item long click functions. This library is a project carried by Lakitha, give a visit https://github.com/LakithaRav

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to RecycleClick

Android-Clean-Architecture
This is a sample movie list Android application built to demonstrate use of Clean Architecture tools. Dedicated to all Android Developers - (Kotlin, MVVM, Clean Architecture, Rx-Java, Dagger, OkHttp, Unit Testing, SOLID principles, Code Coverage)
Stars: ✭ 268 (+972%)
Mutual labels:  android-studio
MyNotes
📒Note taking app, MVVM with Google Architectural components Room, LiveData and ViewModel written in Kotlin, androidx libraries
Stars: ✭ 60 (+140%)
Mutual labels:  android-studio
Whatsapp Android App
This is sample code for layout for chatting app like Whatsapp.
Stars: ✭ 32 (+28%)
Mutual labels:  android-studio
LongScreenshot
This tool makes a number of screenshots, scrolling screen content automatically between each shot
Stars: ✭ 34 (+36%)
Mutual labels:  android-studio
StarWarsSearch-MVI
Star wars sample android project showcasing the use of View components for rendering UI in Fragments and Activities. Uses Android Jetpack, clean architecture with MVI (Uni-directional data flow), dagger hilt, and kotlin coroutines with StateFlow
Stars: ✭ 189 (+656%)
Mutual labels:  android-studio
Wiggles
🐶 Beautiful Puppy adoption app with Jetpack Compose #AndroidDevChallenge
Stars: ✭ 365 (+1360%)
Mutual labels:  android-studio
SampleProfileUi
Modern Look Profile UI For Android Material Design XML
Stars: ✭ 49 (+96%)
Mutual labels:  android-studio
AndroidTips
A collections of tips in Android developing.Android开发总结。我的博客:
Stars: ✭ 721 (+2784%)
Mutual labels:  android-studio
TranslationPlugin
Translation plugin for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio.
Stars: ✭ 9,375 (+37400%)
Mutual labels:  android-studio
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (+28%)
Mutual labels:  android-studio
Wan RecycleViewAdapter
目前封装的比较完善的RecycleView适配器 新增可被Gradle引用
Stars: ✭ 69 (+176%)
Mutual labels:  recycleview
san-jose-theme
A custom Terminal & IntelliJ theme (inspired by PatMurrayDEV -> Apple's WWDC 2017 session slides)
Stars: ✭ 64 (+156%)
Mutual labels:  android-studio
Chat-App-Android
Chat app based on the MVVM architecture using Kotlin, ViewModel, LiveData, DataBinding and more.
Stars: ✭ 70 (+180%)
Mutual labels:  android-studio
vue-cli-plugin-capacitor
A Vue CLI 3/4 Plugin for Capacitor
Stars: ✭ 136 (+444%)
Mutual labels:  android-studio
WebRTCapp
This Android app aims to be a small video conference app created using mainly WebRTC technology. With it, you can make calls though a web socket connection
Stars: ✭ 27 (+8%)
Mutual labels:  android-studio
AmbulanceLocator
Ambulance Locator lets the user find nearby ambulances and as well as call the nearby ambulances.
Stars: ✭ 15 (-40%)
Mutual labels:  android-studio
captAR
Augmented Reality Geolocation Capture-the-Flag Mobile Game Capstone Project
Stars: ✭ 24 (-4%)
Mutual labels:  android-studio
XperiaServiceMenu
An Android app that allows owners of a Sony Xperia, to easily open the service menu app via a tap of a button instead of having to type a code into the phone's dialer.
Stars: ✭ 14 (-44%)
Mutual labels:  android-studio
07-Glitch-Garden-Original
Glitch Garden demo game from the Complete Unity Developer 2D course (http://gdev.tv/cudgithub). For our students to download the end-state of projects.
Stars: ✭ 43 (+72%)
Mutual labels:  android-studio
locus-android
An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
Stars: ✭ 280 (+1020%)
Mutual labels:  android-studio

RecycleClick Download

Android recycler view not supports for onItemClickListner event. This library helps to wrap up and gain the missing recycle view item click and item long click functions. This library is a project carried by Lakitha, give a visit https://github.com/LakithaRav

Anyway... when talk about Android ListView and RecycleView, in old times through the development i preffer Android ListView. It already have click suport inbuilt. with the development I got to know using Android RecycleView is more efficient and memory saving.

recycleclick

This library contains mainly two functions,

  • RecycleClick - OnItemClickListener
  • RecycleClick - OnItemLongClickListener

####Let's take a look how to add this to your project

For the android project just include the following dependency inside you build.gradle's depedency list.

Gradle

repositories {
  jcenter()
}

dependencies {
    ...
    compile 'com.chootdev:recycleclick:1.0.0'
}

if you using maven use following Maven

<dependency>
  <groupId>com.chootdev</groupId>
  <artifactId>recycleclick</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

After setup installing lib to your project you just need only to call it using just few lines of code. It will return you a string with the results.

Usage

To add item click support

RecycleClick.addTo(YOUR_RECYCLEVIEW).setOnItemClickListener(new RecycleClick.OnItemClickListener() {
            @Override
            public void onItemClicked(RecyclerView recyclerView, int position, View v) {
                // YOUR CODE
            }
        });

To change item click to long click,

RecycleClick.addTo(YOUR_RECYCLEVIEW).setOnItemLongClickListener(new RecycleClick.OnItemLongClickListener() {
            @Override
            public boolean onItemLongClicked(RecyclerView recyclerView, int position, View v) {
                // YOUR CODE
                return true;
            }
        });

Both of these functions are providing all necessary information you need to get from an item selection in RecycleView.

i.e :

RecyclerView recyclerView :- current recycleView
int position :- selected positoin of populated data set
View v :- selected view

With the "View" you can manupulate any view associate with selected item.

Limitations

  • Currently min SDK is set to 16

Output Generated

ezgif com-video-to-gif

Changelog

  • 1.0.0
    • Stable the release with sample code
  • 0.1.1
    • Support for click events
  • 0.1.0
    • Initial release

Authors

Chathura Hettiarachchi, [email protected]

Lakitha Samarasinghe, [email protected]

Checkout my other contributions, https://github.com/ChathuraHettiarachchi?tab=repositories

License

Copyright 2016 Chathura Hettiarachchi

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].