# RowsFragment.MainFragmentAdapter

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

*** ** * ** ***


```
class RowsFragment.MainFragmentAdapter : BrowseFragment.MainFragmentAdapter<RowsFragment!>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.leanback.app.BrowseFragment.MainFragmentAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter)\<[RowsFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment)!\> ||
|   | ↳ | [androidx.leanback.app.RowsFragment.MainFragmentAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Deprecated in Java

## Summary

| ### Public constructors |
|---|
| `[MainFragmentAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#MainFragmentAdapter(androidx.leanback.app.RowsFragment))(fragment: https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment!)` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isScrolling](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#isScrolling())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onTransitionEnd](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionEnd())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[onTransitionPrepare](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionPrepare())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[onTransitionStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionStart())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAlignment](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setAlignment(int))(windowAlignOffsetFromTop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setEntranceTransitionState](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setEntranceTransitionState(boolean))(state: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setExpand](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setExpand(boolean))(expand: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |

### Inherited functions

From [androidx.leanback.app.BrowseFragment.MainFragmentAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter) `T!` `[getFragment](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter#getFragment())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.FragmentHost!` `[getFragmentHost](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter#getFragmentHost())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isScalingEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter#isScalingEnabled())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setScalingEnabled](https://developer.android.com/reference/kotlin/androidx/leanback/app/BrowseFragment.MainFragmentAdapter#setScalingEnabled(boolean))(scalingEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java

## Public constructors

### MainFragmentAdapter

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

```
[MainFragmentAdapter](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#MainFragmentAdapter(androidx.leanback.app.RowsFragment))(fragment: RowsFragment!)
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

## Public functions

### isScrolling

```
fun [isScrolling](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#isScrolling())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether its scrolling.

### onTransitionEnd

```
fun [onTransitionEnd](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionEnd())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback indicating transition end.

### onTransitionPrepare

```
fun [onTransitionPrepare](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionPrepare())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback indicating transition prepare start.

### onTransitionStart

```
fun [onTransitionStart](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#onTransitionStart())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Callback indicating transition start.

### setAlignment

```
fun [setAlignment](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setAlignment(int))(windowAlignOffsetFromTop: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the window alignment and also the pivots for scale operation.

### setEntranceTransitionState

```
fun [setEntranceTransitionState](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setEntranceTransitionState(boolean))(state: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

### setExpand

```
fun [setExpand](https://developer.android.com/reference/kotlin/androidx/leanback/app/RowsFragment.MainFragmentAdapter#setExpand(boolean))(expand: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Set the visibility of titles/hover card of browse rows.