GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 10clouds/ParticlesRefreshLayout-android: Particles Refresh Layout library for Android

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
particlesrefreshlayout
particlesrefreshlayout
 
 
static
static
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Particles Refresh Layout Build StatusDownload library

Sample

Sample Particles Refresh Layout

Installation

Just use the Maven repository. Library is on jCenter and mavenCentral.

Gradle:

implementation 'com.tenclouds.particlesrefreshlayout:particles-refresh-layout:{last_release_version}'

SBT:

libraryDependencies += "com.tenclouds.particlesrefreshlayout" % "particles-refresh-layout" % "{last_release_version}"

Maven:

<dependency>
  <groupId>com.tenclouds.particlesrefreshlayout</groupId>
  <artifactId>particles-refresh-layout</artifactId>
  <version>{last_release_version}</version>
  <type>aar</type>
</dependency>

Usage

Wrap your View in ParticlesRefreshLayout in your layout:

<com.tenclouds.particlesrefreshlayout.ParticlesRefreshLayout
            android:id="@+id/particlesRefreshLayout"
            android:layout_height="wrap_content"
            android:layout_width="0dp">
            
        <android.support.v7.widget.RecyclerView
                android:id="@+id/recyclerView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"/>
                
</com.tenclouds.particlesrefreshlayout.ParticlesRefreshLayout>

then listen to start refresh actions:

particlesSwipeRefresh.onParticleRefreshListener = object : OnParticleRefreshListener {
            override fun onRefresh() {
                // do an action and stop refreshing after  
                particlesSwipeRefresh.stopRefreshing()
            }
        }

Application with example is in app folder

Customization

You can customize component from XML layout file, using attributes:

app:accentColor="@color/accentColor"
app:isSmallSize="true"

or from Java/Kotlin code:

particlesSwipeRefresh.accentColor = ContextCompat.getColor(this, R.color.accentColor)
particlesSwipeRefresh.isSmallSize = true

Library made by Jakub Jodełka

About

Particles Refresh Layout library for Android

10clouds.com/

Topics

androidpull-to-refreshrefreshrefreshlayoutrefreshrecyclerviewrefreshview

Resources

Readme
MIT license
Activity
Custom properties

Stars

20 stars

Watchers

3 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.