Android Question How make this Effects?

Douglas Farias

Expert
Licensed User
Longtime User
The first one can more or less easily be implemented without libs as is seems to be only a matter of repositioning views upon gesture...

The second one in part has the same effect as above but also the fading of the image.

I would then say, yes you can, do them without libraries... Or by creating your own custom view
 
Upvote 0
Upvote 0
4 rows of code.. it's simple

Code:
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

ezgif-com-optimize-gif.58385
 
Upvote 0

Similar Threads

Back
Top