# RecyclerViewParallax.ChildPositionProperty

# RecyclerViewParallax.ChildPositionProperty

Artifact:[androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback)  
[View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/RecyclerViewParallax.java+class:androidx.leanback.widget.RecyclerViewParallax.ChildPositionProperty)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty "View this page in Java")

<br />

```
class RecyclerViewParallax.ChildPositionProperty : Parallax.IntProperty
```

<br />

|---|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                                                                 ||||
| ↳ | [android.util.Property](https://developer.android.com/reference/android/util/Property.html)                                                                                                     |||
|   | ↳ | [androidx.leanback.widget.Parallax.IntProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty)                                                ||
|   |   | ↳ | [androidx.leanback.widget.RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty) |

*** ** * ** ***

Subclass of[Parallax.IntProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty). Using this Property, users can track a RecylerView child's position inside recyclerview. i.e. tracking_pos = view.top + fraction \* view.height() + offset This way we can track top using fraction 0 and bottom using fraction 1.

## Summary

|                                                                        ### Public functions                                                                         |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | [adapterPosition](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#adapterPosition(int))`(adapterPosition: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets adapter position of the recyclerview child to track.                                                                                                           |
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | [fraction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#fraction(float))`(fraction: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Sets fraction of size to be added to view's start position. e.g. to track the center position of the view, use fraction 0.5; to track the end position of the view use fraction 1. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                         | [getAdapterPosition](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#getAdapterPosition())`()` Returns adapter position of the recyclerview child to track.                                                                                                                                                                                                   |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                                                                     | [getFraction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#getFraction())`()` Returns fraction of size to be added to view's start position. e.g. to track the center position of the view, use fraction 0.5; to track the end position of the view use fraction 1.                                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                         | [getOffset](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#getOffset())`()` Returns offset in pixels added to the view's start position.                                                                                                                                                                                                                     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                         | [getViewId](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#getViewId())`()` Returns view Id of a descendant of recyclerview child to track.                                                                                                                                                                                                                  |
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | [offset](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#offset(int))`(offset: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets offset in pixels added to the view's start position.                                                                                                                                      |
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | [viewId](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty#viewId(int))`(viewId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets view Id of a descendant of recyclerview child to track.                                                                                                                                   |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ### Inherited Constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.leanback.widget.Parallax.IntProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty) |-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [UNKNOWN_AFTER](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#UNKNOWN_AFTER())` = 2147483647` Property value is unknown and it's larger than[getMaxValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()). | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [UNKNOWN_BEFORE](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#UNKNOWN_BEFORE())` = -2147483648` Property value is unknown and it's smaller than minimal value of Parallax.                                                                                | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.leanback.widget.Parallax.IntProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty) |-----------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Parallax.PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)`!` | [at](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#at(int,float))`(offsetValue: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, fractionOfMaxParentVisibleSize: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Create an[PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)object by multiplying the fraction with[getMaxValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue())and adding offsetValue to it. | | [Parallax.PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)`!` | [atAbsolute](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atAbsolute(int))`(absoluteValue: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates an[PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)object for the absolute marker value.                                                                                                                                                                                                                                                   | | [Parallax.PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)`!` | [atFraction](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atFraction(float))`(fractionOfMaxValue: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Creates an[PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)object for a fraction of[getMaxValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()).                                                                                                                                       | | [Parallax.PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)`!` | [atMax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atMax())`()` Creates an[PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)object for the marker value representing[getMaxValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax#getMaxValue()).                                                                                                                                                                                                                                           | | [Parallax.PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)`!` | [atMin](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#atMin())`()` Creates an[PropertyMarkerValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.PropertyMarkerValue)object for the marker value representing 0.                                                                                                                                                                                                                                                                                                                                                      | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`!`                                                          | [get](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#get(androidx.leanback.widget.Parallax))`(object: `[Parallax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax)`!)`                                                                                                                                                                                                                                                                                                                                                                                                   | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                             | [getIndex](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#getIndex())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                             | [getValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#getValue(androidx.leanback.widget.Parallax))`(object: `[Parallax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax)`!)` Fast version of get() method that returns a primitive int value of the Property.                                                                                                                                                                                                                                                                                                        | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                           | [set](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#set(androidx.leanback.widget.Parallax,java.lang.Integer))`(object: `[Parallax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax)`!, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`!)`                                                                                                                                                                                                                                                                                          | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                           | [setValue](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax.IntProperty#setValue(androidx.leanback.widget.Parallax,int))`(object: `[Parallax](https://developer.android.com/reference/kotlin/androidx/leanback/widget/Parallax)`!, value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Fast version of set() method that takes a primitive int value into the Property.                                                                                                                                                                                                              | |
| From[android.util.Property](https://developer.android.com/reference/android/util/Property.html) |---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `abstract V!`                                                                                           | [get](https://developer.android.com/reference/android/util/Property.html#get(T))`(p: T!)`                                                                                                                                                                                                                                                                                                                                                 | | [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!`                    | [getName](https://developer.android.com/reference/android/util/Property.html#getName())`()`                                                                                                                                                                                                                                                                                                                                               | | [Class](https://developer.android.com/reference/java/lang/Class.html)`<V!>!`                            | [getType](https://developer.android.com/reference/android/util/Property.html#getType())`()`                                                                                                                                                                                                                                                                                                                                               | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                     | [isReadOnly](https://developer.android.com/reference/android/util/Property.html#isReadOnly())`()`                                                                                                                                                                                                                                                                                                                                         | | `java-static `[Property](https://developer.android.com/reference/android/util/Property.html)`<T!, V!>!` | `<T, V> `[of](https://developer.android.com/reference/android/util/Property.html#of(java.lang.Class&lt;T&gt;, java.lang.Class&lt;V&gt;, java.lang.String))`(hostType: `[Class](https://developer.android.com/reference/java/lang/Class.html)`<T!>!, valueType: `[Class](https://developer.android.com/reference/java/lang/Class.html)`<V!>!, name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!)` | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                           | [set](https://developer.android.com/reference/android/util/Property.html#set(T, V))`(object: T!, value: V!)`                                                                                                                                                                                                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Public functions

### adapterPosition

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun adapterPosition(adapterPosition: Int): RecyclerViewParallax.ChildPositionProperty!
```

Sets adapter position of the recyclerview child to track.  

|                                           Parameters                                           |
|------------------------------------------------------------------------------------------------|---------------------------------|
| `adapterPosition: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Zero based position in adapter. |

|                                                                               Returns                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | This ChildPositionProperty object. |

### fraction

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun fraction(fraction: Float): RecyclerViewParallax.ChildPositionProperty!
```

Sets fraction of size to be added to view's start position. e.g. to track the center position of the view, use fraction 0.5; to track the end position of the view use fraction 1.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|-------------------------------|
| `fraction: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | Fraction of size of the view. |

|                                                                               Returns                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | This ChildPositionProperty object. |

### getAdapterPosition

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun getAdapterPosition(): Int
```

Returns adapter position of the recyclerview child to track.  

### getFraction

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun getFraction(): Float
```

Returns fraction of size to be added to view's start position. e.g. to track the center position of the view, use fraction 0.5; to track the end position of the view use fraction 1.  

### getOffset

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun getOffset(): Int
```

Returns offset in pixels added to the view's start position.  

### getViewId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun getViewId(): Int
```

Returns view Id of a descendant of recyclerview child to track.  

### offset

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun offset(offset: Int): RecyclerViewParallax.ChildPositionProperty!
```

Sets offset in pixels added to the view's start position.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|------------------------------------------------------|
| `offset: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Offset in pixels added to the view's start position. |

|                                                                               Returns                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | This ChildPositionProperty object. |

### viewId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

```
fun viewId(viewId: Int): RecyclerViewParallax.ChildPositionProperty!
```

Sets view Id of a descendant of recyclerview child to track.  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|-------------------------------------------|
| `viewId: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | Id of a descendant of recyclerview child. |

|                                                                               Returns                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [RecyclerViewParallax.ChildPositionProperty](https://developer.android.com/reference/kotlin/androidx/leanback/widget/RecyclerViewParallax.ChildPositionProperty)`!` | This ChildPositionProperty object. |