android-PullRefreshLayout
android-PullRefreshLayout copied to clipboard
PullRefreshLayout not available
<com.baoyz.widget.PullRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
</com.baoyz.widget.PullRefreshLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<com.baoyz.widget.PullRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</com.baoyz.widget.PullRefreshLayout>
</LinearLayout>
@baoyongzhang , still available up to this moment, right?
` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">
<com.baoyz.widget.PullRefreshLayout
android:id="@+id/pullRefresh"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="Hello World!" />
</com.baoyz.widget.PullRefreshLayout>
</LinearLayout>`
implementation 'com.baoyz.pullrefreshlayout:library:1.2.0'
Seems to be not working. Am I missing something?
@baoyongzhang @h87kg or does it work only with a list child?
Just put your TextView inside a ScrollView and it will work 👍 <PullRefresh> <ScrollView> <TextView>