Package com.airbnb.paris.utils

Types

StyleBuilderFunction
Link copied to clipboard
interface StyleBuilderFunction<T : StyleBuilder?>

Functions

dpToPx
Link copied to clipboard
fun Resources.dpToPx(dps: Int): Int
getFloat
Link copied to clipboard
fun Resources.getFloat(@AnyRes() res: Int): Float
getFont
Link copied to clipboard
fun Context.getFont(@FontRes() id: Int): Typeface?
getLayoutDimension
Link copied to clipboard
fun Resources.getLayoutDimension(@DimenRes() res: Int): Int
getStyle
Link copied to clipboard
fun Resources.getStyle(@StyleRes() res: Int): ResourceStyle
setPaddingBottom
Link copied to clipboard
fun View.setPaddingBottom(@Px() px: Int)
setPaddingEnd
Link copied to clipboard
@RequiresApi(value = 17)
fun View.setPaddingEnd(@Px() px: Int)
setPaddingHorizontal
Link copied to clipboard
fun View.setPaddingHorizontal(@Px() px: Int)
setPaddingLeft
Link copied to clipboard
fun View.setPaddingLeft(@Px() px: Int)
setPaddingRight
Link copied to clipboard
fun View.setPaddingRight(@Px() px: Int)
setPaddingStart
Link copied to clipboard
@RequiresApi(value = 17)
fun View.setPaddingStart(@Px() px: Int)
setPaddingTop
Link copied to clipboard
fun View.setPaddingTop(@Px() px: Int)
setPaddingVertical
Link copied to clipboard
fun View.setPaddingVertical(@Px() px: Int)
toColorStateList
Link copied to clipboard
fun Int.toColorStateList(): ColorStateList