https://kotlinlang.org logo
c

carlw

01/24/2017, 12:07 PM
@edvin I'm not sure if you've seen this in the CRM app, but I'm looking for a good pattern where a bunch of Fragments or Views share the same ProgressBar, Label, and status HBox container. Right now, I have a master View that owns these controls using individual Fragment ViewModels in the way that we've been discussing the past few weeks. What I have is working, but I'm looking for a better pattern because the binding expressions are getting longer and longer with each child Fragment I add. Maybe a general status / notifications object that uses the event bus? Also, I'm using first-come-first-serve as to the current status reporter. A better solution might keep a list of statuses.