This class was deprecated
in API level 26.1.0.
this class is deprecated along with its parent class.
This interface was deprecated
in API level 26.1.0.
this class is deprecated along with its parent class.
If a layout wants to support percentage based dimensions and use this helper class, its
LayoutParams subclass must implement this interface.
Your LayoutParams subclass should contain an instance of PercentLayoutInfo
and the implementation of this interface should be a simple accessor.
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-02-10 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-02-10 UTC."],[],[],null,["# PercentLayoutHelper.PercentLayoutParams\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact com.android.support:percent:28.0.0-alpha1 \nDeprecated since version 26.1.0 \nSummary: [Methods](#pubmethods) \\| [\\[Expand All\\]](#) \n\nPercentLayoutHelper.PercentLayoutParams\n=======================================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\nstatic\n\n\ninterface\nPercentLayoutHelper.PercentLayoutParams\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------------|\n| android.support.percent.PercentLayoutHelper.PercentLayoutParams |\n\n|---|---|\n| Known Indirect Subclasses [PercentFrameLayout.LayoutParams](/reference/android/support/percent/PercentFrameLayout.LayoutParams),[PercentRelativeLayout.LayoutParams](/reference/android/support/percent/PercentRelativeLayout.LayoutParams) |-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------| | [PercentFrameLayout.LayoutParams](/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.* | | [PercentRelativeLayout.LayoutParams](/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.* | ||\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 26.1.0.** \n\nthis class is deprecated along with its parent class.\n\nIf a layout wants to support percentage based dimensions and use this helper class, its\n`LayoutParams` subclass must implement this interface.\n\nYour `LayoutParams` subclass should contain an instance of `PercentLayoutInfo`\nand the implementation of this interface should be a simple accessor.\n\nSummary\n-------\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[PercentLayoutHelper.PercentLayoutInfo](/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | ` `[getPercentLayoutInfo](/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams#getPercentLayoutInfo())`() ` |\n\nPublic methods\n--------------\n\n### getPercentLayoutInfo\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nPercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------|--------|\n| [PercentLayoutHelper.PercentLayoutInfo](/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo) | \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [PercentLayoutHelper.PercentLayoutParams](/reference/android/support/percent/PercentLayoutHelper.PercentLayoutParams)\n-\n\n Classes\n -------\n\n - [PercentFrameLayout](/reference/android/support/percent/PercentFrameLayout)\n - [PercentFrameLayout.LayoutParams](/reference/android/support/percent/PercentFrameLayout.LayoutParams)\n - [PercentLayoutHelper](/reference/android/support/percent/PercentLayoutHelper)\n - [PercentLayoutHelper.PercentLayoutInfo](/reference/android/support/percent/PercentLayoutHelper.PercentLayoutInfo)\n - [PercentRelativeLayout](/reference/android/support/percent/PercentRelativeLayout)\n - [PercentRelativeLayout.LayoutParams](/reference/android/support/percent/PercentRelativeLayout.LayoutParams)\n - [R](/reference/android/support/percent/R)\n - [R.attr](/reference/android/support/percent/R.attr)\n - [R.bool](/reference/android/support/percent/R.bool)\n - [R.color](/reference/android/support/percent/R.color)\n - [R.dimen](/reference/android/support/percent/R.dimen)\n - [R.drawable](/reference/android/support/percent/R.drawable)\n - [R.id](/reference/android/support/percent/R.id)\n - [R.integer](/reference/android/support/percent/R.integer)\n - [R.layout](/reference/android/support/percent/R.layout)\n - [R.string](/reference/android/support/percent/R.string)\n - [R.style](/reference/android/support/percent/R.style)\n - [R.styleable](/reference/android/support/percent/R.styleable)"]]