viewvalue-core


License

License

MIT
GroupId

GroupId

io.taig.android
ArtifactId

ArtifactId

viewvalue-core_2.11
Last Version

Last Version

1.4.1
Release Date

Release Date

Type

Type

aar
Description

Description

viewvalue-core
viewvalue-core
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-core_2.11

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8

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.4.1
1.4.0
1.3.1
1.3.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1