Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In this example, I used data binding on the navigation drawer to update the layout whenever a user logged in the navigation drawer change its layout. Make a class which extends a BaseObservable class and put a key in shared preference so whenever the value changes on the particular key shared preference listener notify the login variable.
Here is my public class LoginChecker:
In my login.xml, data is an instance of LoginChecker class. Here the magic happens whenever the user logged in there is visibility condition so whenever the new value update on the index login in shared preference previous layout change its visibility.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
The results provided were above our expectations both in deliverability timeline as well as operation. They are a top-notch company with many resources and a company we feel honoured to work with again!
Lee Seward
Founder, Gro-Connect
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.