Stay organized with collections
Save and categorize content based on your preferences.
AnimationParameters
open class AnimationParameters : LayoutAnimationController.AnimationParameters
The set of parameters that has to be attached to each view contained in the view group animated by the grid layout animation controller. These parameters are used to compute the start time of each individual view's animation.
Summary
Properties |
Int |
The view group's column to which the view belongs.
|
Int |
The number of columns in the view's enclosing grid layout.
|
Int |
The view group's row to which the view belongs.
|
Int |
The number of rows in the view's enclosing grid layout.
|
Inherited properties |
From class AnimationParameters
Int |
count
The number of children in the view group containing the view to which these parameters are attached.
|
Int |
index
The index of the view to which these parameters are attached in its containing view group.
|
|
Public constructors
AnimationParameters
AnimationParameters()
Properties
column
var column: Int
The view group's column to which the view belongs.
columnsCount
var columnsCount: Int
The number of columns in the view's enclosing grid layout.
row
var row: Int
The view group's row to which the view belongs.
rowsCount
var rowsCount: Int
The number of rows in the view's enclosing grid layout.
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,["# GridLayoutAnimationController.AnimationParameters\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAnimationParameters\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/animation/GridLayoutAnimationController.AnimationParameters \"View this page in Java\") \n\n```\nopen class AnimationParameters : LayoutAnimationController.AnimationParameters\n```\n\n|---|---|-------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.view.animation.LayoutAnimationController.AnimationParameters](/reference/kotlin/android/view/animation/LayoutAnimationController.AnimationParameters) ||\n| | ↳ | [android.view.animation.GridLayoutAnimationController.AnimationParameters](#) |\n\nThe set of parameters that has to be attached to each view contained in the view group animated by the grid layout animation controller. These parameters are used to compute the start time of each individual view's animation.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------|---|\n| [AnimationParameters](#AnimationParameters())`()` \u003cbr /\u003e |\n\n| Properties ||\n|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [column](#column:kotlin.Int) The view group's column to which the view belongs. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [columnsCount](#columnsCount:kotlin.Int) The number of columns in the view's enclosing grid layout. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [row](#row:kotlin.Int) The view group's row to which the view belongs. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [rowsCount](#rowsCount:kotlin.Int) The number of rows in the view's enclosing grid layout. |\n\n| Inherited properties ||\n|---|---|\n| From class [AnimationParameters](/reference/kotlin/android/view/animation/LayoutAnimationController.AnimationParameters) |----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [count](/reference/kotlin/android/view/animation/LayoutAnimationController.AnimationParameters#count:kotlin.Int) The number of children in the view group containing the view to which these parameters are attached. \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [index](/reference/kotlin/android/view/animation/LayoutAnimationController.AnimationParameters#index:kotlin.Int) The index of the view to which these parameters are attached in its containing view group. \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### AnimationParameters\n\n```\nAnimationParameters()\n```\n\nProperties\n----------\n\n### column\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar column: Int\n```\n\nThe view group's column to which the view belongs. \n\n### columnsCount\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar columnsCount: Int\n```\n\nThe number of columns in the view's enclosing grid layout. \n\n### row\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar row: Int\n```\n\nThe view group's row to which the view belongs. \n\n### rowsCount\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar rowsCount: Int\n```\n\nThe number of rows in the view's enclosing grid layout."]]