added in [version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)

# android.support.percent

| This package is part of the Android [support library](https://developer.android.com/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](https://developer.android.com/jetpack/androidx) which is part of [Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](https://developer.android.com/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class
| mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Interfaces

|---|---|
| [PercentLayoutHelper.PercentLayoutParams](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams) | *This interface was deprecated in API level 26.1.0. this class is deprecated along with its parent class.* |

## Classes

|---|---|
| [PercentFrameLayout](https://developer.android.com/reference/android/support/percent/PercentFrameLayout) | *This class was deprecated in API level 26.1.0. consider using ConstraintLayout and associated layouts instead. The following shows how to replicate the functionality of percentage layouts with a ConstraintLayout. The Guidelines are used to define each percentage break point, and then a Button view is stretched to fill the gap: ```gdscript <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"&gt <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/left_guideline" app:layout_constraintGuide_percent=".15" android:orientation="vertical"/&gt <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/right_guideline" app:layout_constraintGuide_percent=".85" android:orientation="vertical"/&gt <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/top_guideline" app:layout_constraintGuide_percent=".15" android:orientation="horizontal"/&gt <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/bottom_guideline" app:layout_constraintGuide_percent=".85" android:orientation="horizontal"/&gt <Button android:text="Button" android:layout_width="0dp" android:layout_height="0dp" android:id="@+id/button" app:layout_constraintLeft_toLeftOf="@+id/left_guideline" app:layout_constraintRight_toRightOf="@+id/right_guideline" app:layout_constraintTop_toTopOf="@+id/top_guideline" app:layout_constraintBottom_toBottomOf="@+id/bottom_guideline" /&gt </android.support.constraint.ConstraintLayout&gt ```* |
| [PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams) | *This class was deprecated in API level 26.1.0. this class is deprecated along with its parent class.* |
| [PercentLayoutHelper](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper) | *This class was deprecated in API level 26.1.0. consider using ConstraintLayout and associated layouts instead. The following shows how to replicate the functionality of percentage layouts with a ConstraintLayout. The Guidelines are used to define each percentage break point, and then a Button view is stretched to fill the gap:* ``` <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/left_guideline" app:layout_constraintGuide_percent=".15" android:orientation="vertical"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/right_guideline" app:layout_constraintGuide_percent=".85" android:orientation="vertical"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/top_guideline" app:layout_constraintGuide_percent=".15" android:orientation="horizontal"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/bottom_guideline" app:layout_constraintGuide_percent=".85" android:orientation="horizontal"/> <Button android:text="Button" android:layout_width="0dp" android:layout_height="0dp" android:id="@+id/button" app:layout_constraintLeft_toLeftOf="@+id/left_guideline" app:layout_constraintRight_toRightOf="@+id/right_guideline" app:layout_constraintTop_toTopOf="@+id/top_guideline" app:layout_constraintBottom_toBottomOf="@+id/bottom_guideline" /> </android.support.constraint.ConstraintLayout>   ``` |
| [PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | *This class was deprecated in API level 26.1.0. use ConstraintLayout and Guidelines for layout support.* |
| [PercentRelativeLayout](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout) | *This class was deprecated in API level 26.1.0. consider using ConstraintLayout and associated layouts instead. The following shows how to replicate the functionality of percentage layouts with a ConstraintLayout. The Guidelines are used to define each percentage break point, and then a Button view is stretched to fill the gap:* ``` <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/left_guideline" app:layout_constraintGuide_percent=".15" android:orientation="vertical"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/right_guideline" app:layout_constraintGuide_percent=".85" android:orientation="vertical"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/top_guideline" app:layout_constraintGuide_percent=".15" android:orientation="horizontal"/> <android.support.constraint.Guideline android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/bottom_guideline" app:layout_constraintGuide_percent=".85" android:orientation="horizontal"/> <Button android:text="Button" android:layout_width="0dp" android:layout_height="0dp" android:id="@+id/button" app:layout_constraintLeft_toLeftOf="@+id/left_guideline" app:layout_constraintRight_toRightOf="@+id/right_guideline" app:layout_constraintTop_toTopOf="@+id/top_guideline" app:layout_constraintBottom_toBottomOf="@+id/bottom_guideline" /> </android.support.constraint.ConstraintLayout>   ``` |
| [PercentRelativeLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout.LayoutParams) | *This class was deprecated in API level 26.1.0. this class is deprecated along with its parent class.* |
| [R](https://developer.android.com/reference/android/support/percent/R) |   |
| [R.attr](https://developer.android.com/reference/android/support/percent/R.attr) |   |
| [R.bool](https://developer.android.com/reference/android/support/percent/R.bool) |   |
| [R.color](https://developer.android.com/reference/android/support/percent/R.color) |   |
| [R.dimen](https://developer.android.com/reference/android/support/percent/R.dimen) |   |
| [R.drawable](https://developer.android.com/reference/android/support/percent/R.drawable) |   |
| [R.id](https://developer.android.com/reference/android/support/percent/R.id) |   |
| [R.integer](https://developer.android.com/reference/android/support/percent/R.integer) |   |
| [R.layout](https://developer.android.com/reference/android/support/percent/R.layout) |   |
| [R.string](https://developer.android.com/reference/android/support/percent/R.string) |   |
| [R.style](https://developer.android.com/reference/android/support/percent/R.style) |   |
| [R.styleable](https://developer.android.com/reference/android/support/percent/R.styleable) |   |

-

  ## Interfaces

  - [PercentLayoutHelper.PercentLayoutParams](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams)
-

  ## Classes

  - [PercentFrameLayout](https://developer.android.com/reference/android/support/percent/PercentFrameLayout)
  - [PercentFrameLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentFrameLayout.LayoutParams)
  - [PercentLayoutHelper](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper)
  - [PercentLayoutHelper.PercentLayoutInfo](https://developer.android.com/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo)
  - [PercentRelativeLayout](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout)
  - [PercentRelativeLayout.LayoutParams](https://developer.android.com/reference/android/support/percent/PercentRelativeLayout.LayoutParams)
  - [R](https://developer.android.com/reference/android/support/percent/R)
  - [R.attr](https://developer.android.com/reference/android/support/percent/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/percent/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/percent/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/percent/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/percent/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/percent/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/percent/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/percent/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/percent/R.string)
  - [R.style](https://developer.android.com/reference/android/support/percent/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/percent/R.styleable)