Wish Android-ObservableScrollView

Star-Dust

Expert
Licensed User
Longtime User
This ?
ezgif-com-optimize-gif.58385


Only 4 rows of code. Is simple, non library required
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
B4X:
private Sub MyScroll_ScrollChanged(Position As Int)
    Dim Pos As Int = Max(MyTitleFull.Height-Position,MyTitleReduce.Height)
    MyScroll.Top=Pos
    MyTitleFull.Top=Pos-MyTitleFull.Height
   ' MyTitleReduced si under MyTitleFull
    If Pos=MyTitleReduce.Height Then
        MyTitleFull.SetVisibleAnimated(1000,False)
    Else
        MyTitleFull.SetVisibleAnimated(400,True)
    End If

End Sub
 
Top