firebase / firebase/firebase-android-sdk

Card type In-App Message layout disorder when rotating from portrait to landscape on Android

Open
#3,540 3 comments 0 reactions 0 assignees View on GitHub
api: inappmessaging type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 9h
Merged PRs (30d)
31

Description

### [READ] Step 1: Are you in the right place?

Yes

### [REQUIRED] Step 2: Describe your environment

* firebase-inappmessaging-display:20.1.1

* Android Studio version: __Arctic Fox | 2020.3.1 Patch3___
* Firebase Component: ___inappmessaging-display__
* Component version: ___20.1.1__

### [REQUIRED] Step 3: Describe the problem

#### Steps to reproduce:

- In firebase inappmessaging console, create a card type message including a long text body, an image, and a button.
- On android client side, define activity property android:configChanges="orientation|screenSize|keyboardHidden" in AndroidManifest.xml
- Once received the message, rotate the device from portrait to landscape or vice versa.
- Compare the card view layout in portrait and landscape orientation, after rotation to landscape, the card layout disorders, the long text body unscrollable, and the button NOT displayed in viewport, see ScreenRecords below.

#### Relevant Code:
AndroidMainfest.xml

#### ScreenRecords

![layout_from_portrait_to_lanscape](https://user-images.githubusercontent.com/2148244/158608652-4ea51b82-28d9-495a-808b-f6ba2da2443d.gif)
![layout_from_landscape_to_portrait](https://user-images.githubusercontent.com/2148244/158608793-dbd6a473-c3b1-4307-ad6d-6bc45fbf7536.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.