annotation to configure macro ExtensionDefs.materializeTypeclassInstance[A,B]
arguments: (list of register methods, callback method)
side-effect tracker.
side-effect tracker. call perform
to execute the side-effects within
a trait for creating fully type-safe view hierarchies
a trait for creating fully type-safe view hierarchies
lazy val views = ViewTree.inflateF(this, Main) { case "progress.pb1" => this.make[ProgressBar](android.R.attr.progressBarStyleSmall) case "progress.pb2" => this.make[ProgressBar](android.R.attr.progressBarStyleHorizontal) } case class ProgressBars( container: LinearLayout, pb1: ProgressBar, pb2: ProgressBar, pb3: ProgressBar ) extends ViewTree[LinearLayout] { ... } case class Main( container: LinearLayout, text: TextView, image: ImageView, progress: ProgressBars, ok: Button, cancel: Button ) extends ViewTree[LinearLayout] { ... }
extension functions derived from callback/listener classes in package android.view
UI execution context, use with combinators such as defer
and deferF
(Since version 2.0.0) don't use arbitrary IDs