---
title: RtkGridView
description: API reference for RtkGridView component (Android Library)
image: https://developers.cloudflare.com/dev-products-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/realtime/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# RtkGridView

The main grid component which handles the participant grid layout, pagination, and focus modes.

## Methods

| Method            | Parameters                    | Description                                                                                                                                |
| ----------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| activate          | meeting: RealtimeKitClient    | Bind the grid to the meeting state                                                                                                         |
| refresh           | force: Boolean                | Force a refresh of the grid layout and participants                                                                                        |
| enableFocusMode   | \-                            | Enable focus mode, which hides the horizontal peer strip and full-screen toggle to keep attention on the primary speaker or shared content |
| applyDesignTokens | designTokens: RtkDesignTokens | Apply custom design tokens for theming                                                                                                     |

## Usage Examples

### Basic Usage

```
<com.cloudflare.realtimekit.ui.view.grid.RtkGridView    android:id="@+id/rtk_grid"    android:layout_width="match_parent"    android:layout_height="match_parent" />
```

### With Methods

Kotlin

```
val grid = findViewById<RtkGridView>(R.id.rtk_grid)grid.activate(meeting)
```

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/android/grid-view/#page","headline":"RtkGridView · Cloudflare Realtime docs","description":"API reference for RtkGridView component (Android Library)","url":"https://developers.cloudflare.com/realtime/realtimekit/ui-kit/api-reference/android/grid-view/","inLanguage":"en","image":"https://developers.cloudflare.com/dev-products-preview.png","dateModified":"2026-04-21","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/realtime/","name":"Realtime"}},{"@type":"ListItem","position":3,"item":{"@id":"/realtime/realtimekit/","name":"RealtimeKit"}},{"@type":"ListItem","position":4,"item":{"@id":"/realtime/realtimekit/ui-kit/","name":"Build using UI Kit"}},{"@type":"ListItem","position":5,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/","name":"Component Reference"}},{"@type":"ListItem","position":6,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/android/","name":"Android"}},{"@type":"ListItem","position":7,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/android/grid-view/","name":"RtkGridView"}}]}
```
