MCPcopy Index your code
hub / github.com/Yalantis/Phoenix

github.com/Yalantis/Phoenix @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
80 symbols 162 edges 7 files 3 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Pull-to-Refresh.Rentals-Android

This project aims to provide a simple and customizable pull to refresh implementation.

alt text

Check this [project on dribble] (https://dribbble.com/shots/1650317-Pull-to-Refresh-Rentals)

[Hire us!] (http://yalantis.com/)

Usage

For a working implementation, Have a look at the Sample Project - sample

  1. Include the library as local library project.
  2. Include the PullToRefreshView widget in your layout.

    ```xml

    <ListView
        android:id="@+id/list_view"
        android:divider="@null"
        android:dividerHeight="0dp"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    

    ```

  3. In your onCreate method refer to the View and setup OnRefreshListener. java mPullToRefreshView = (PullToRefreshView) findViewById(R.id.pull_to_refresh); mPullToRefreshView.setOnRefreshListener(new PullToRefreshView.OnRefreshListener() { @Override public void onRefresh() { mPullToRefreshView.postDelayed(new Runnable() { @Override public void run() { mPullToRefreshView.setRefreshing(false); } }, REFRESH_DELAY); } });

Customization

There is one attribute which applicable to PullToRefreshView.

  • type type of refresh animation
  • You can also set this attribute from your java code by calling setRefreshStyle(int type)

To customize drawables you can change: * sun.png - Sun image * sky.png - background image * buildings.png - foreground image

Misc

If you need to change progress state:

    mPullToRefreshView.setRefreshing(boolean isRefreshing)

Compatibility

  • Android Gelly Bean 4.1+

Changelog

Version: 1.0

  • Initial Build

Extension points exported contracts — how you extend this code

OnRefreshListener (Interface)
(no doc) [1 implementers]
library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java

Core symbols most depended-on inside this repo

getLocation
called by 8
library/src/main/java/com/yalantis/pulltorefresh/library/util/Logger.java
getTotalDragDistance
called by 7
library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java
getContext
called by 7
library/src/main/java/com/yalantis/pulltorefresh/library/refresh_view/BaseRefreshView.java
setPercent
called by 5
library/src/main/java/com/yalantis/pulltorefresh/library/refresh_view/SunRefreshView.java
setTargetOffsetTop
called by 4
library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java
getClassName
called by 4
library/src/main/java/com/yalantis/pulltorefresh/library/util/Logger.java
ensureTarget
called by 3
library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java
animateOffsetToStartPosition
called by 3
library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java

Shape

Method 70
Class 9
Interface 1

Languages

Java100%

Modules by API surface

library/src/main/java/com/yalantis/pulltorefresh/library/PullToRefreshView.java25 symbols
library/src/main/java/com/yalantis/pulltorefresh/library/refresh_view/SunRefreshView.java22 symbols
library/src/main/java/com/yalantis/pulltorefresh/library/refresh_view/BaseRefreshView.java13 symbols
sample/src/main/java/com/yalantis/pulltorefresh/sample/PullToRefreshActivity.java8 symbols
library/src/main/java/com/yalantis/pulltorefresh/library/util/Logger.java6 symbols
library/src/main/java/com/yalantis/pulltorefresh/library/util/Utils.java3 symbols
library/src/main/java/com/yalantis/pulltorefresh/library/util/Toaster.java3 symbols

For agents

$ claude mcp add Phoenix \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact