org.macroid

Tweaks

trait Tweaks extends Tweaking

This trait provides the most useful tweaks. For an expanded set, see contrib.ExtraTweaks

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tweaks
  2. Tweaking
  3. Functors
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class FunctorTweaking[A <: View, F[_]] extends AnyRef

    Definition Classes
    Tweaking
  2. implicit class FutureOptionTweaking[A <: View] extends AnyRef

    Definition Classes
    Tweaking
  3. type Tweak[-A <: View] = (A) ⇒ Unit

    A tweak is a function that mutates a View

    A tweak is a function that mutates a View

    Definition Classes
    Tweaking
  4. implicit class TweakAddition[A <: View] extends AnyRef

    Definition Classes
    Tweaking
  5. implicit class ViewTweaking[A <: View] extends AnyRef

    Definition Classes
    Tweaking

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object FuncOn extends Dynamic

  7. object On extends Dynamic

  8. object ThunkOn extends Dynamic

  9. def addViews(children: Seq[View], removeOld: Boolean = false): (ViewGroup) ⇒ Unit

    Add views to the layout

  10. def addViewsReverse(children: Seq[View], removeOld: Boolean = false): (ViewGroup) ⇒ Unit

    Add view to the layout in reversed order (uses addView(child, 0))

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. val disable: (View) ⇒ Unit

    Disable this view

  14. def enable(c: Boolean): (View) ⇒ Unit

    Conditionally enable/disable this view

  15. val enable: (View) ⇒ Unit

    Enable this view

  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. implicit def eventStreamF(implicit ob: Observer): Functor[EventStream]

    Definition Classes
    Functors
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. implicit def futureF(implicit ec: ExecutionContext): Functor[Future]

    Definition Classes
    Functors
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. val hide: (View) ⇒ Unit

    Hide this view (uses View.

    Hide this view (uses View.GONE)

  24. val horizontal: (LinearLayout) ⇒ Unit

    Make this layout horizontal

  25. def id(id: Int): (View) ⇒ Unit

    Set this view’s id

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def layoutParams(params: Any*): (View) ⇒ Unit

    Automatically find the appropriate LayoutParams class from the parent layout.

    Automatically find the appropriate LayoutParams class from the parent layout.

    Annotations
    @macroImpl( ... )
  28. def layoutParamsOf[B <: ViewGroup](params: Any*): (View) ⇒ Unit

    Use LayoutParams of the specified layout class

    Use LayoutParams of the specified layout class

    Annotations
    @macroImpl( ... )
  29. implicit val listF: Traverse[List] with MonadPlus[List] with Each[List] with Index[List] with Length[List] with Zip[List] with Unzip[List] with IsEmpty[List] { def empty[A]: List[Nothing] }

    Definition Classes
    Functors
  30. def lp(params: Any*): (View) ⇒ Unit

    Automatically find the appropriate LayoutParams class from the parent layout.

    Automatically find the appropriate LayoutParams class from the parent layout.

    Annotations
    @macroImpl( ... )
  31. def lpOf[B <: ViewGroup](params: Any*): (View) ⇒ Unit

    Annotations
    @macroImpl( ... )
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. implicit val optionF: Traverse[Option] with MonadPlus[Option] with Each[Option] with Index[Option] with Length[Option] with Cozip[Option] with Zip[Option] with Unzip[Option] with IsEmpty[Option] { def point[A](a: => A): Some[A] }

    Definition Classes
    Functors
  36. def padding(left: Int = 0, top: Int = 0, right: Int = 0, bottom: Int = 0, all: Int = 1): (View) ⇒ Unit

    Set padding

  37. implicit object rxF extends Functor[Rx]

    Definition Classes
    Functors
  38. def show(c: Boolean): (View) ⇒ Unit

    Conditionally show/hide this view

  39. val show: (View) ⇒ Unit

    Show this view (uses View.

    Show this view (uses View.VISIBLE)

  40. def showProgress(futures: Seq[Future[Any]])(implicit ec: ExecutionContext): (ProgressBar) ⇒ Unit

    Show this progress bar with determinate progress and hide it once all futures are done

  41. def showProgress(future: Future[Any])(implicit ec: ExecutionContext): (ProgressBar) ⇒ Unit

    Show this progress bar with indeterminate progress and hide it once future is done

  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  43. def text(text: Either[Int, CharSequence]): (TextView) ⇒ Unit

    Set text

  44. def text(text: Int): (TextView) ⇒ Unit

    Set text

  45. def text(text: CharSequence): (TextView) ⇒ Unit

    Set text

  46. def toString(): String

    Definition Classes
    AnyRef → Any
  47. implicit def tweakMonoid[A <: View]: Monoid[(A) ⇒ Unit]

    Definition Classes
    Tweaking
  48. val vertical: (LinearLayout) ⇒ Unit

    Make this layout vertical

  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def wire[A <: View](v: Option[A]): (A) ⇒ Unit

    Assign the view to the provided slot

    Assign the view to the provided slot

    Annotations
    @macroImpl( ... )
  53. def wire[A <: View](v: A): (A) ⇒ Unit

    Assign the view to the provided var

    Assign the view to the provided var

    Annotations
    @macroImpl( ... )

Inherited from Tweaking

Inherited from Functors

Inherited from AnyRef

Inherited from Any

Ungrouped