Function

toRsp

Extension function to convert a Dp to a RemoteTextUnit in Sp.

toRsp

Source set: Android
public fun Dp.toRsp(): RemoteTextUnit

Extension function to convert a Dp to a RemoteTextUnit in Sp.

Return

a RemoteTextUnit in SP converted from this Dp

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: