Attached the version 2.0 (not compatible with the 1.0) - b4a code module and library (see post #6). This version allows to also collapse a B4XView.
Premise: I wanted to create an animation; it did not work the first time and then, from the wrong code, I wrote these few lines, nothing special (for this reason I do not charge € 100 ).
Very minimal code module / library.
This code uses my other code module / library, ViewPos; you could mix the two modules or replace the two methods used here in ExpandView:
ViewPos.GetBottom(Vw)
to
Vw.Top + Vw.Height - 1
and
ViewPos.GetRight(Vw)
to
Vw.Left + Vw.Width - 1
Note that jxExpandView and xExpandView libraries already "contains" ViewPos, you don't need to add it to your projects.
Example:
ExpandView.Expand(400, ImageView1, ExpandView.EXPVW_LEFT_TO_RIGHT)
applied to a xCustomListView:
Premise: I wanted to create an animation; it did not work the first time and then, from the wrong code, I wrote these few lines, nothing special (for this reason I do not charge € 100 ).
Very minimal code module / library.
This code uses my other code module / library, ViewPos; you could mix the two modules or replace the two methods used here in ExpandView:
ViewPos.GetBottom(Vw)
to
Vw.Top + Vw.Height - 1
and
ViewPos.GetRight(Vw)
to
Vw.Left + Vw.Width - 1
Note that jxExpandView and xExpandView libraries already "contains" ViewPos, you don't need to add it to your projects.
Example:
ExpandView.Expand(400, ImageView1, ExpandView.EXPVW_LEFT_TO_RIGHT)
applied to a xCustomListView:
Attachments
Last edited: