android-PullRefreshLayout icon indicating copy to clipboard operation
android-PullRefreshLayout copied to clipboard

PullRefreshLayout not available

Open h87kg opened this issue 10 years ago • 5 comments

<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>

h87kg avatar Nov 15 '14 12:11 h87kg

<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 avatar Nov 15 '14 13:11 baoyongzhang

@baoyongzhang , still available up to this moment, right?

amnotarobot avatar Oct 23 '18 08:10 amnotarobot

` <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?

amnotarobot avatar Oct 23 '18 08:10 amnotarobot

@baoyongzhang @h87kg or does it work only with a list child?

amnotarobot avatar Oct 23 '18 08:10 amnotarobot

Just put your TextView inside a ScrollView and it will work 👍 <PullRefresh> <ScrollView> <TextView>

Snailtamer avatar Jan 23 '20 12:01 Snailtamer