Pull To Refresh

PullToRefresh with progress bar. Simple callback!

Лицензия

Лицензия

Группа

Группа

me.aflak.libraries
Идентификатор

Идентификатор

pulltorefresh
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

Pull To Refresh
PullToRefresh with progress bar. Simple callback!
Ссылка на сайт

Ссылка на сайт

https://github.com/omaflak/Pull-To-Refresh-Listview
Система контроля версий

Система контроля версий

https://github.com/omaflak/Pull-To-Refresh-Listview

Скачать pulltorefresh

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/me.aflak.libraries/pulltorefresh/ -->
<dependency>
    <groupId>me.aflak.libraries</groupId>
    <artifactId>pulltorefresh</artifactId>
    <version>1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/me.aflak.libraries/pulltorefresh/
implementation 'me.aflak.libraries:pulltorefresh:1.0'
// https://jarcasting.com/artifacts/me.aflak.libraries/pulltorefresh/
implementation ("me.aflak.libraries:pulltorefresh:1.0")
'me.aflak.libraries:pulltorefresh:aar:1.0'
<dependency org="me.aflak.libraries" name="pulltorefresh" rev="1.0">
  <artifact name="pulltorefresh" type="aar" />
</dependency>
@Grapes(
@Grab(group='me.aflak.libraries', module='pulltorefresh', version='1.0')
)
libraryDependencies += "me.aflak.libraries" % "pulltorefresh" % "1.0"
[me.aflak.libraries/pulltorefresh "1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.android.support » appcompat-v7 jar 23.2.1

Модули Проекта

Данный проект не имеет модулей.

Pull To Refresh Library Download

Pull To Refresh with progress bar

Gradle

Add to your gradle dependencies:

compile 'me.aflak.libraries:pulltorefresh:1.0'

Xml Layout

<me.aflak.pulltorefresh.PullToRefresh
  android:id="@+id/pull_to_refresh"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
  
  <ListView
      android:id="@+id/list"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>
	  
</me.aflak.pulltorefresh.PullToRefresh>

Java file

ListView list = (ListView)findViewById(R.id.list);
PullToRefresh ptr = (PullToRefresh) findViewById(R.id.pull_to_refresh);

ptr.setListView(list);
ptr.setOnRefreshListener(new PullToRefresh.OnRefreshListener() {
    @Override
    public void onRefresh() {
        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                // some stuff...
  
                ptr.refreshComplete();
            }
        });
    }
});

Версии библиотеки

Версия
1.0