---
title: "Discussion on \"Compose keyboard show/hide listener\" | Hashnode"
description: "Discussion on \"Compose keyboard show/hide listener\". val keyboardController = LocalSoftwareKeyboardController.current\nval view = LocalView.current\nval viewTreeObserver = view.viewTreeObserver\nDisposableEffect(viewTreeObserver) {\n    val listener = ViewTreeObserver.OnGlobalLayoutListener {\n        val i..."
url: "https://hashnode.com/posts/compose-keyboard-showhide-listener/660792e8cc05c67c72139eb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Compose keyboard show/hide listener](https://compose.hashnode.dev/compose-keyboard-showhide-listener?utm_source=hashnode&utm_medium=feed)

val keyboardController = LocalSoftwareKeyboardController.current val view = LocalView.current val viewTreeObserver = view.viewTreeObserver DisposableEffect(viewTreeObserver) { val listener = ViewTreeObserver.OnGlobalLayoutListener { val i...

Mar 30, 2024 · 1 min read · compose.hashnode.dev  
Read the article

## Written by

[Compose ReadyMade](https://hashnode.com/@rajushingadiya)

@rajushingadiya

  
[View profile](https://hashnode.com/@rajushingadiya)

ReadyMade Compose Code

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
