[Free] SwipeRefresh extension by ColinTree

extension

#1

Swipe it, and refresh it.

Events

  • Refresh

Methods

  • CancelRefreshing

  • RegisterArrangement

  • RegisterListView

    P.S. Choose only one register method for each SwipeRefresh component. Once an arrangement(or a listview) is successfully registered to a SwipeRefresh compoent, any other register called will be ignored.

  • Recommended System Colors

Properties

  • BackgroundColor
    color of the process spinner
  • ColorList
    for the refreshing animation, with a order of displaying.
  • DragEnd
    The offset in pixels from the top of this view at which the progress spinner should come to rest after a successful swipe gesture.
  • DragScale
    Setting it to true will cause indicator to be scaled up rather than clipped.
  • DragStart
    The offset in pixels from the top of this view at which the progress spinner should appear.
  • Enabled
  • NestedScrollingEnabled
  • Refreshing
  • SizeLarge

Download

got two version: stable & compressed. once the original library is compressed, it may be not so stable for all system versions.

Sample

(2017.10.6 1:45 GMT+8)
(Compressed package used)
SwipeRefreshTest_en.aia (347.5 KB)
SwipeRefreshTest_en_appinventor.apk (1.9 MB)
SwipeRefreshTest_en_thunkable.apk (2.3 MB)


If you fell good about this, try sponsor me at Paypal~


Refresh Button Or Auto Refresh
Swipe refresh error
How can I make swiping Smooth
#2

Very interested and looking forward to perfection.


#3

fail dealing with the size… writing doc now. comming soon~


:joy:


#4

puedes limitar el uso a api 21 o superior y no importar la librería y bajara de tamaño la extensión


#5

it is the support v4, i tried to simplify it, but just does not works well.


#6

puedes importar la librería en los archivos build.xml pero no los importas dentro de la clase


#7

i did import through build.xml, but the classes is required as i wrote "@UsesLibraries(libraries = “android-support-v4.jar”)"
so that is why the whole lib is included in jar


#8

no need try compiler


#9

You are talking off-topic, as Compiler.java can’t be in extensions… @ColinTree I am “moliata” from GitHub :wink:, I can only give you an idea of building your own custom library, by importing only required Java files from support v4 sources. Regards


#10

aha that is you.
i just wanna try because the support library got source code in android sdk directory. i think i can get another try on it.


#11

simplify succeed & test pass :smile:

NOTICE for the other extension developers THAT want to include a jar file:
i got stuck by the jdk 1.8.0 for hours… the apk packer said “bad class file magic or version 0034” and then DX fail.
as the jdk level downgrade to 1.7.0_79 (by JAVA_HOME) and jar is repacked, every thing just works well…
anyway, that is life :sob:


#12

thank you for your tip…

however the correct forum to talk about working with the App Inventor sources would be the Open Source Forum… https://groups.google.com/forum/#!forum/app-inventor-open-source-dev
most parts of the discussion in this thread is off topic…

Taifun


#13

yeah, kind of off topic, but i think it is a kind of discussion for this extension. like reporting my progress

whatever…


#14

Released. welcome to test the compressed version. :wink:


#15

can you make a video? so i can understand better


#16

@ColinTree, just got it …it was so obvious :smiley:
great ext


#17

What is the difference, buddy?


#18

I had try to delete some ‘useless’ code in a library, in order to reduce the size of the extension package.
So it is not stable if I delete some files that is not needed on my phone, but needed in yours.


#19

Ok, so… it’s better download the stable version?


#20

Yes. But since there was a new upgrade of appinventor reacently, i think i should work on this again and remove the built-in library, cuz it had been included in sources.