EddyVerbruggen / EddyVerbruggen/nativescript-feedback

Snackbar out of screen when keyboard is showing with android:windowSoftInputMode="adjustPan"

Open
#68 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
128
Forks
26
PR merge metrics
No merged PRs in 30d

Description

In my Android app I am using `android:windowSoftInputMode="adjustPan"` in the manifest. When I show a snackbar before or after opening the keyboard, the container is pushed off the screen.

![2](https://user-images.githubusercontent.com/38555316/85997518-df2d9580-ba09-11ea-812d-b8bb00c9d05b.png)

When I close the keyboard, it returns in place.

![1](https://user-images.githubusercontent.com/38555316/85997441-ca510200-ba09-11ea-87ec-55af79ec4c17.png)

I can't change the soft input mode to `adjustResize` or else, is there any way to pin the snackbar to the screen instead of the root view?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the snackbar behavior in an Android app using android:windowSoftInputMode="adjustPan", comparing its position with the keyboard hidden and shown. Trace how the snackbar is attached to the root view and determine whether it can remain visible while the keyboard is open; done means it stays on screen without requiring adjustResize.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.