Skip to content

Instantly share code, notes, and snippets.

@stanch
Created September 28, 2013 22:29
Show Gist options
  • Save stanch/6747423 to your computer and use it in GitHub Desktop.
Save stanch/6747423 to your computer and use it in GitHub Desktop.
var status = slot[TextView]
setContentView {
l[LinearLayout](
w[TextView] ~> text("Downloading") ~> wire(status),
w[TextView] ~> text("the internet...") ~> id(Id.inet)
)
}
// after some time...
status ~> text("Just")
findView[TextView](Id.inet) ~> text("kidding!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment