This site requires javascript.
Android Code Search
file:androidx/core/graphics/Color.kt function:toColor
search
close
info_outline
more_vert
Result 1 of 1
content_copy
Search Result Root
androidx/platform/frameworks/support
keyboard_arrow_right
Branch
Branch
androidx-main
keyboard_arrow_right
Search Result Path
core/core-ktx/src/main/java/androidx/core/graphics/
Color.kt
content_copy
Preview
188:
189:
190:
*/
@RequiresApi(
26
)
public
inline
fun
@
receiver
:ColorInt Int.
toColor
(): Color = Color.valueOf(this)
196:
197:
198:
@ColorLong
public
inline
fun
@
receiver
:ColorInt Int.
toColor
Long(): Long = Color.pack(this)
295:
296:
297:
/** Creates a new [Color] instance from a [color long][Color]. */
@RequiresApi(
26
)
public
inline
fun
@
receiver
:ColorLong Long.
toColor
(): Color = Color.valueOf(this)
300:
301:
302:
@ColorInt
public
inline
fun
@
receiver
:ColorLong Long.
toColor
Int(): Int = Color.toArgb(this)
403:
404:
*/
@ColorInt
public
inline
fun
String.
toColor
Int(): Int = Color.parseColor(this)
chevron_left
1
chevron_right
Results per page
10
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Got it
Open branch androidx-main
Help