B4A Library [Lib, Chargeable] Amir_RecyclerView

New b4a library! :)

RecyclerView, an important part of the sdk and android for making a custom list with better Layout , animation , and fixed for large data set.


Amir_RecyclerView released new version that we call it AX_RecyclerView.

version 1.0.8 is last update for Amir_RecyclerView and we will work on AX_RecyclerView only in future.


RecyclerView Android X : https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView

"RecyclerView is part of the v7 support library which means you can use it on anything that has api 7 and up"

543434345345.jpg



Advantages of using recyclerview instead listview:
  • ViewHolder Pattern
In a ListView, it was recommended to use the ViewHolder pattern but it was never a compulsion. In case of RecyclerView, this is mandatory using the RecyclerView.ViewHolder class. This is one of the major differences between the ListView and the RecyclerView.​

  • LayoutManager
This is another massive enhancement brought to the RecyclerView. In a ListView, the only type of view available is the vertical ListView. There is no official way to even implement a horizontal ListView.​
Now using a RecyclerView, we can have a:​
i) LinearLayoutManager - which supports both vertical and horizontal lists,​
ii) StaggeredLayoutManager - which supports Pinterest like staggered lists,​
iii) GridLayoutManager - which supports displaying grids as seen in Gallery apps.​
And the best thing is that we can do all these dynamically as we want.​

  • Item Animator
ListViews are lacking in support of good animations, but the RecyclerView brings a whole new dimension to it. Using the RecyclerView.ItemAnimator class, animating the views becomes so much easy and intuitive.​

  • Item Decoration
In case of ListViews, dynamically decorating items like adding borders or dividers was never easy. But in case of RecyclerView, the RecyclerView.ItemDecorator class gives huge control to the developers but makes things a bit more time consuming and complex.​

  • OnItemTouchListener
Intercepting item clicks on a ListView was simple, thanks to its AdapterView.OnItemClickListener interface. But the RecyclerView gives much more power and control to its developers by the RecyclerView. OnItemTouchListener but it complicates things a bit for the developer.​


For more info:
https://developer.android.com/reference/android/support/v7/widget/RecyclerView

You can add plugins as library and connect it to Amir_RecyclerView using a line of code

Current Plugins :
  • Amir_RVHeaderFooter
  • Amir_RVToolbarParallax
  • Amir_RVEmptyView
  • Amir_RVCardSlider
  • Amir_RVCarousel
  • Amir_RVDiscrete
  • Amir_RVExpandable
  • Amir_RVFanLayout
  • Amir_RVFeature
  • Amir_RVItemPicker ( deprecated )
  • Amir_RVLayoutAnimation
  • Amir_RVMultiSelection
  • Amir_RVParallax
  • Amir_RVRefreshLayout
  • Amir_RVShimmer
  • Amir_RVSkidRight
  • Amir_RVSwipeCards
  • Amir_RVVegaLayout
  • Amir_RVEchelon
  • Amir_WearableRecyclerView
  • Amir_RVDragItem
  • Amir_RVStickyHeader
  • AX_RecyclerViewPager ( deprecated )
  • Amir_RVAnimators
  • AX_RVSelection
  • AX_RVItemPicker
  • AX_RVPageIndicator
  • Amir_RVChipsLayoutManager
  • AX_RVSwipeLayout 1.00
  • AX_RVHeaderParallax
  • Amir_RVCardViewAdapter
  • Amir_RVExpandableStickyHeader
  • Amir_RVOverScroll
  • AX_RVFastScroller
  • AX_RVHeightStaggeredGrid
  • Amir_RVDragAndSwipe ( NEW )

Demo and samples how to use :

Download the DEMO.apk ( updated in 28th of July 2019 )
Download Demo Source Code

Extra Samples are here


Current version of Amir_RecyclerView : 1.2.0

Be sure to check the apk sample before purchasing.


You can have this fantastic library just with $25 ( only Amir_RecyclerView )
Full packages include all plugins only $35

Short documentations attached , special thanks to fredo

After your purchase please send me an email with your purchase detail ( alimanam@gmail.com )

 

Attachments

  • Amir_RecyclerView_FullPackage_1.0.2.LIBDOC.zip
    61.1 KB · Views: 908
Last edited:

Xfood

Well-Known Member
Licensed User
I bought the library, and I can't compile any example, I tried everything jetifier, updated, what should I do?



1596718183394.png



B4A Versione: 10.0
Java Versione: 8
Analisi del Codice. (0.01s)
Building folders structure. (0.01s)
Compilazione del codice. (0.11s)
Compilazione del codice di layouts (0.03s)
Organizzazione Librerie. (0.04s)
(AndroidX SDK)
Generazione file R. (1.02s)
Compilazione del codice Java prodotto. Error
B4A line: 24
Activity.AddView(RV,0,0,100%x,100%y)
javac 1.8.0_251
src\com\aghajari\rv\samples\activity2.java:364: error: cannot access RecyclerView
mostCurrent._activity.AddView((android.view.View)(mostCurrent._rv.getObject()),(int) (0),(int) (0),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA));
^
class file for android.support.v7.widget.RecyclerView not found
 

alimanam3386

Active Member
Licensed User
Have you tried to use search in the forum ? Several times I answered this question. Please use the search of forum.


and too many
 

Xfood

Well-Known Member
Licensed User
Have you tried to use search in the forum ? Several times I answered this question. Please use the search of forum.


and too many
Now, Its not solved. i jetified the library.
 

alimanam3386

Active Member
Licensed User
You should not use the old support:android.recyclerview-v7 try to remove it . it should looks like this :

just download androidx libraries.

2534.jpg
 
Last edited:

alimanam3386

Active Member
Licensed User
:rolleyes::rolleyes::rolleyes::rolleyes::rolleyes: please just use androidX
TYPE JUST ANDROIDX AND DOWNLOAD ALL RECOMMENDED LIBRARIES START WITH ANDROIDX
 

Xfood

Well-Known Member
Licensed User
try to run b4a as Administrator
ok now it works Thanks

I suggest to put the screenshots with sdk to update, and to write to launch b4a as an administrator and then do jetfier, it would be easier for everyone instead of navigating on mile link.

thanks now i can finally try and enjoy this fantastic library
 

alimanam3386

Active Member
Licensed User
ok now it works Thanks

I suggest to put the screenshots with sdk to update, and to write to launch b4a as an administrator and then do jetfier, it would be easier for everyone instead of navigating on mile link.

thanks now i can finally try and enjoy this fantastic library

As a developer you should know that any application in the Microsoft Windows 10 or 8.1 or 7 or or or should run as administrator :) I am happy because you are happy now. Good luck man.
 

skaliwag

Member
Licensed User
Thanks, that worked.
However if I do a simple background colour change to the items, you can see that the fastscroll and prompt appear behind the items (but in front of the divider).
How can this be avoided?
 

Attachments

  • FastScroll.zip
    9.9 KB · Views: 79
  • screenshot.png
    screenshot.png
    12 KB · Views: 129

User242424

Member
Licensed User
Hello World!
ARV-1.2.0 new package release


1. RVMoreExpandable (Default Plugin) (B4AClassModule)

MoreExpandable.png


2. AX_RVFastScroller v1.04
This bug has been fixed!
However if I do a simple background colour change to the items, you can see that the fastscroll and prompt appear behind the items (but in front of the divider).
How can this be avoided?

3. ARV-Finder.jar

Capture.PNG

ARV-Finder will help you to find latest plugins and edits,
and also you can save all libs&plugins and copy them into a new folder with only one click!

1.Open ARV-Finder.jar (as you know, JavaRuntime needed)
2.Click on Save All and wait a moment
3.ARV-Finder will create "All Libs" Folder
4.You can see all libraries in "All Libs" Folder.
5.Copy them in your B4A Libraries folder. (Additional libraries recommended)
6.Jetify your libraries.
 

Inman

Well-Known Member
Licensed User
Do you have an example of ViewPager with a TabBar linked to it? I saw some examples of ViewPager with page indicator that work great but nothing with TabBar.
 
Top