When an android.app.Activity
can't be found automatically using
the implicits in iota._
or Contexts._
implement this trait
to help the implicit out
When an android.app.Activity
can't be found automatically using
the implicits in iota._
or Contexts._
implement this trait
to help the implicit out
When a android.content.Context
can't be found automatically using
the implicits in iota._
or Contexts._
implement this trait
to help the implicit out
When a android.content.Context
can't be found automatically using
the implicits in iota._
or Contexts._
implement this trait
to help the implicit out
retrieve a styled attributeset
retrieve a styled attributeset
orientation checker, true if landscape
orientation checker, true if landscape
pull a context out of "thin air", checks for Activity, Fragment and WithContext
pull a context out of "thin air", checks for Activity, Fragment and WithContext
orientation checker, true if portrait
orientation checker, true if portrait
resolve a single theme attribute
resolve a single theme attribute
Constructs a single instance of a given abstract class or interface,
can optionally specify the method name
example usage:
view.setOnClickListener(single[View.OnClickListener] { v: View =>
Toast.makeText(view.getContext, view.getId + " was clicked", Toast.LENGTH_SHORT).show()
})
Constructs a single instance of a given abstract class or interface,
can optionally specify the method name
example usage:
view.setOnClickListener(single[View.OnClickListener] { v: View =>
Toast.makeText(view.getContext, view.getId + " was clicked", Toast.LENGTH_SHORT).show()
})
this version, single
, requires all input parameters to be specified
and handled
Constructs a single instance of a given abstract class or interface, can optionally specify the method name if multiple methods need implementation, only the specified method will be implemented, and others will have default, 0, implementations created
Constructs a single instance of a given abstract class or interface, can optionally specify the method name if multiple methods need implementation, only the specified method will be implemented, and others will have default, 0, implementations created
example usage:
view.animate().x(100).setListener(
single0[AnimatorListener].onAnimationEnd(view.setVisibility(View.GONE)))
this version, single0
, ignores all input parameters of the interface
smallest width checker
smallest width checker
type-safe retrieval of system service objects.
type-safe retrieval of system service objects.
e.g. systemService[NotificationManager]
retrieve a set of styled theme attributes
retrieve a set of styled theme attributes
version checker, at least minVersion
=> true
version checker, at least minVersion
=> true
find a strongly-typed view.
find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source
(Since version 0.9.2) Use the view holder pattern for better compile-time safety
find a strongly-typed view.
find a strongly-typed view. will fail to compile if id(xxx) is not used prior in the source
(Since version 0.9.2) Use the view holder pattern for better compile-time safety