View Model Color Property
class ViewModelColorProperty(unsafeCppPointer: Long, fileLock: ReentrantLock) : ViewModelProperty<Int>
A color property of a ViewModelInstance. Values are represented as integers in 0xAARRGGBB format.
The Android Color class is not available prior to API 26, and because this library has minSDK 21, we use integers. If you are using API 26+, you can convert to Color with Color.valueOf and to an Int with Color.toArgb. If you are supporting prior to API 26, you can still use Color.argb to handle the bit manipulations.
See also
Properties
Functions
Link copied to clipboard
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Link copied to clipboard