viewvalue


License

License

MIT
GroupId

GroupId

io.taig.android
ArtifactId

ArtifactId

viewvalue_2.11
Last Version

Last Version

1.5.0
Release Date

Release Date

Type

Type

aar
Description

Description

viewvalue
viewvalue
Project URL

Project URL

https://github.com/taig/viewvalue
Project Organization

Project Organization

io.taig.android
Source Code Management

Source Code Management

https://github.com/taig/viewvalue

Download viewvalue_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/io.taig.android/viewvalue_2.11/ -->
<dependency>
    <groupId>io.taig.android</groupId>
    <artifactId>viewvalue_2.11</artifactId>
    <version>1.5.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.taig.android/viewvalue_2.11/
implementation 'io.taig.android:viewvalue_2.11:1.5.0'
// https://jarcasting.com/artifacts/io.taig.android/viewvalue_2.11/
implementation ("io.taig.android:viewvalue_2.11:1.5.0")
'io.taig.android:viewvalue_2.11:aar:1.5.0'
<dependency org="io.taig.android" name="viewvalue_2.11" rev="1.5.0">
  <artifact name="viewvalue_2.11" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.taig.android', module='viewvalue_2.11', version='1.5.0')
)
libraryDependencies += "io.taig.android" % "viewvalue_2.11" % "1.5.0"
[io.taig.android/viewvalue_2.11 "1.5.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
com.android.support » design jar 25.1.0

Project Modules

There are no modules declared in this project.

ViewValue

Android View API helper

Dependencies

"io.taig.android" %% "viewvalue" % "1.5.0"

Usage

import android.widget.TextView
import io.taig.android.viewvalue.implicits._

val tv: TextView = new TextView( context )

val c1 = tv.value[String]
val c2 = tv.value[Option[String]]

tv.value = "foo"
tv.value = Some( "foo" )
tv.value = None

tv.error = Some( "my error message" )
tv.error = "my error message"
tv.error = None

Supported widgets

Core

Value

Widget Injections  Extractions Description
CompoundButton Boolean Boolean Checked state
ImageView Drawable, Bitmap, Int (resource), Uri Drawable Image drawable (foreground)
RadioGroup Int, Option[Int] Int, Option[Int] Selected item id
TextView CharSequence, Option[CharSequence], Int (resource) String, Option[String] Text value

Error

Widget Injections  Extractions Description
TextView CharSequence, Option[CharSequence], Int (resource) Option[String] Error value

Design

Value

Widget Injections  Extractions Description
TextInputLayout CharSequence, Option[CharSequence], Int (resource) String, Option[String] Text value of the inner EditText

Error

Widget Injections  Extractions Description
TextInputLayout CharSequence, Option[CharSequence], Int (resource) Option[String] Error value
TextView CharSequence, Option[CharSequence], Int (resource) Option[String] Error value will be forwarded to parent TextInputLayout (if available)

Versions

Version
1.5.0
1.5.0-RC1
1.4.1
1.4.0