More convenient and organized constructorsScaloid provided the two-argument
apply()function for the object SButton; The first argument represents the text, and the second represents onClick behavior.
val button = SButton("Greet", toast("hello"))
In this version, this kind of initialization is generalized to cover constructors of every classes that inherits
TextView. For example:
val textView = new STextView("Greet", toast("hello"))
Scaloid also provides concise initialization functions(in both constructor and apply method) for the classes that inherits
ImageView. For example:
val imageView = new SImageView(R.drawable.greet, toast("hello"))
More general constructors for SArrayAdapterPlease refer to the github issues #57 and #58.
...and several minor improvements on APIs
You can include this version of Scaloid into a maven project by:
or a sbt project by:
<dependency> <groupId>org.scaloid</groupId> <artifactId>scaloid_2.10</artifactId> <version>2.3-8</version> </dependency>
libraryDependencies += "org.scaloid" %% "scaloid" % "2.3-8"