Skip to content

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

Open
@txfyxzzy

Description

@txfyxzzy

[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
<activity
...
android:configChanges="orientation|screenSize|keyboardHidden" />

ScreenRecords

layout_from_portrait_to_lanscape
layout_from_landscape_to_portrait

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions