Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# DimensionBuilders.DpProp\n========================\n\nArtifact: [androidx.wear.tiles:tiles](/jetpack/androidx/releases/wear-tiles) \n[View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/DimensionBuilders.java+class:androidx.wear.tiles.DimensionBuilders.DpProp) \nAdded in [1.0.0](/jetpack/androidx/releases/wear-tiles#1.0.0) \nDeprecated in [1.2.0](/jetpack/androidx/releases/wear-tiles#1.2.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/wear/tiles/DimensionBuilders.DpProp \"View this page in Java\")\n\n\n```\nclass DimensionBuilders.DpProp : DimensionBuilders.ContainerDimension, DimensionBuilders.ImageDimension, DimensionBuilders.SpacerDimension\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA type for linear dimensions, measured in dp.\n\nSummary\n-------\n\n| ### Nested types |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `class `[DimensionBuilders.DpProp.Builder](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp.Builder)` : `[DimensionBuilders.ContainerDimension.Builder](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.ContainerDimension.Builder)`, `[DimensionBuilders.ImageDimension.Builder](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.ImageDimension.Builder)`, `[DimensionBuilders.SpacerDimension.Builder](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.SpacerDimension.Builder) Builder for [DpProp](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp). |\n\n| ### Public functions |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| `@`[Dimension](/reference/kotlin/androidx/annotation/Dimension)`(unit = 0) `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | ~~[getValue](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp#getValue())~~`()` Gets the value, in dp. |\n\nPublic functions\n----------------\n\n### getValue\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-tiles#1.0.0) \nDeprecated in [1.2.0](/jetpack/androidx/releases/wear-tiles#1.2.0) \n\n```\nfun [getValue](/reference/kotlin/androidx/wear/tiles/DimensionBuilders.DpProp#getValue())(): @Dimension(unit = 0) Float\n```\n\nGets the value, in dp. Intended for testing purposes only."]]