Skip to content

Elevation Attribute

ZieIony edited this page May 7, 2015 · 1 revision

carbon_elevation

Methods: View.get/setElevation(float)

Type: dimension

Valid values: 0 - 8dp

Used for specifying elevation values for views. Each view with non-zero elevation value cast a shadow. Elevation will be clamped internally to [0,25]. Higher and negative values are not supported.

Carbon offers several elevation - related constants:

  • carbon_elevationFlat = 0dp
  • carbon_elevationMin = 2dp
  • carbon_elevationMedium = 4dp
  • carbon_elevationHigh = 6dp
  • carbon_elevationMax = 8dp
Clone this wiki locally