Android Question SetLayoutVisible

FIELDY1970

New Member
Hi All,

This is really bugging me in B4A. I know its me, just not sure what I am doing wrong. Bsically would like to fade a B4XDrawer out of view then call it back to visible when required.

I am using the statement;

Object.leftpanel.SetLayoutVisible(1000,false) ' THIS WORKS AS EXPECTED

Then later call;

Object.leftpanel.SetLayoutVisible(1000,true) ' THIS DOES NOT WORK AS EXPECTED AND I CANT GET THE VIEW BACK!

Any help greatly appreciated.
 

Sagenut

Expert
Licensed User
Longtime User
Without having an example to test that show the issue it's quite difficult to understand what is going on.
I am just trying to guess:
B4XDrawer is designed to work sliding the menu in and out.
Could it be that after you set it to Not Visible it slide out and then you try to make it Visible again but not sliding in?
I suppose that
B4X:
Object.leftpanel.SetLayoutVisible(1000,false)
is
B4X:
Object.leftpanel.SetVisibleAnimated(1000,false)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…