Android Example Amir_RecyclerView-Samples

Hello World!

Extra Samples of
ARV will be posted here from now on ?

Samples :
All samples are included in ARV-FullPackage ExtraSamples
If you have written some samples with ARV and would like to share them, this will be a great place to share!
Thanks for your support :)
 
Last edited:

User242424

Member
Licensed User
ScalingParallax :
Hello World! i work on ARV wrappers team.
Let's start with an awesome ARV source code </>

AX_RVScalingParallax :

AX_RVScalingParallax.gif

Using AX_RVHeaderParallax plugin:


Usage :
B4X:
'Initializing class
ScallingParallax.Initialize(Holder,Toolbar,RecyclerView)

'Add header content
Dim Img As ImageView
Img.Initialize("")
ScallingParallax.Content.AddView(Img,0,0,-1,-1)
Img.SetBackgroundImage(Bitmap)

'Customize items background
Dim CD As ColorDrawable
CD.Initialize(0xFF00D474,0)
ScallingParallax.Items.Background = CD

'Add items
AddItem("Watch Now",Chr(0xF26C))
AddItem("Comments",Chr(0xF0E5))

Private Sub AddItem (Text As String,Icon As Object)
    Dim Lbl As Label
    Lbl.Initialize("Item")
    Lbl.TextColor = Colors.White
    Lbl.Gravity = Gravity.CENTER
   
    Dim CS As CSBuilder
    CS.Initialize.Typeface(Typeface.FONTAWESOME).Size(20).Append(Icon).PopAll
    CS.Size(16).Append("  "&Text)
    Lbl.Text = CS.PopAll
    Lbl.Tag = Text
   
    ScallingParallax.AddItem(Lbl)
End Sub

Check the last email you have received and update your ARV package again..
you can find this source code on "Extra Samples"

the sample UI was inspired by ScalingLayout library.
 
Top