B4A Library [Lib, Chargeable] Amir_RecyclerView

msali

Member
Licensed User
Longtime User
in ios we don't have recyclerview so you can't use this library in b4i.

any plan to do so in near future since that would make the application look so different between iOS and this wonderful Android look & feel.
 

asales

Expert
Licensed User
Longtime User
I get some errors in this samples:

Amir_RVItemPicker:
B4X:
java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0 com.aghajari.rv.RecyclerView{877be93 VFED..... ......I. 0,0-0,0}, adapter:com.aghajari.rvplugins.Amir_RVItemPicker$Amir_RVItemPickerAdapter@fbf1ed0, layout:com.aghajari.rvplugins.PickerLayoutManager@4a3aec9, context:android.app.Application@168d9ce

Amir_RVShimmer:
B4X:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.ViewGroup.getChildAt(int)' on a null object reference

Amir_RVMultiSelection / CountSize:
B4X:
java.lang.Exception: Sub onscanfinished was not found.

Amir_RVMultiSelection / CountSize + Focus:
B4X:
Recycler.UpdateViews  'Unknown member: UpdateViews
- - - - - - 
java.lang.Exception: Sub onscanfinished was not found.

Amir_RVMultiSelection / Selection:
B4X:
java.lang.Exception: Sub onscanfinished was not found.

The others samples is OK.
 

alimanam3386

Active Member
Licensed User
Longtime User


Check your inbox
 

asales

Expert
Licensed User
Longtime User
In the first example (Amir_RecyclerView / RecyclerView / Sample / RecyclerView) I tried to load a layout created in the Designer, instead by code, and I get this error:
B4X:
java.lang.IllegalArgumentException: You must not call setTag() on a view Glide is targeting

I only changed this (the code is attached):
B4X:
Private Sub Amir_onCreateViewHolder (Parent As Panel,ViewType As Int)
'    Dim Panel As Panel
'    Panel.Initialize("")
'    Parent.AddView(Panel,10dip,10dip,Parent.Width-20dip,430dip)
' 
'    Dim img As ImageView
'    img.Initialize("")
'    Panel.AddView(img,0,0,Panel.Width,Panel.Height)
'
'    Dim Title As Label
'    Title.Initialize("")
'    Panel.AddView(Title,20dip,Panel.Height-150dip,Panel.Width-40dip,50dip)
'
'    Dim Text As Label
'    Text.Initialize("")
'    Panel.AddView(Text,20dip,Panel.Height-100dip,Panel.Width-40dip,100dip)
  
    Parent.LoadLayout("1")
End Sub
What I doing wrong?
 

Attachments

  • RecyclerViewSample1.zip
    10.1 KB · Views: 264

alimanam3386

Active Member
Licensed User
Longtime User


Add this line of code before LoadImage(img,Position) ( line 76)

When you use layout designer with an imageView inside it, if you use Amir_Glide to load a bitmap into imageView, you should set imageview.Tag = Null before loading that bitmap.

 
Last edited:

asales

Expert
Licensed User
Longtime User
Can you put an example of the effect of the button with heart/cancel (Like & DisLike)?:



Thanks!
 

itgirl

Active Member
Licensed User
Longtime User
Great lib really i just tried the Google play ex its amazing really, Already sent $25, thanks for this great lib
 

jimmyF

Active Member
Licensed User
Longtime User
PayPal just advised me they have sent you a payment for full package including all plugins.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…