question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android][Column Rendering] [The elements inside the column do not get correct type of the parent view]

See original GitHub issue

Platform

What platform is your issue or question related to? (Delete other platforms).

  • Android

Author or host

Microsoft Teams

Version of SDK

2.3.1

Details

A mockLayout (parent) in CardRendererRegistration is sent to the element renderers in sdk code. This mockLayout is set to FlexboxLayout in case of columns and LinearLayout in case of other elements. Actually this mockLayout should follow the same as the parent container. example: When an image is placed inside a column, it should get parentLayout (mockLayout) as FlexboxLayout (currently LinearLayout). The custom renderer is unable to identify the parent container correctly and unable to set properties like gravity/justifyContent.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
golddovecommented, Nov 19, 2020

This should no longer be a blocker for Teams, after #5085 is merged, because columns revert to always being a LinearLayout. Nonetheless, the logic here should be fixed for future-proofing.

0reactions
paulcam206commented, Jan 27, 2022

Addressing this issue is not currently on our roadmap, so closing. Please feel free to continue the conversation in this issue for future consideration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compose layout basics | Jetpack Compose
Compose provides a collection of ready-to-use layouts to help you arrange your UI elements, and makes it easy to define your own, more-specialized...
Read more >
Match Width of Parent in Column (Jetpack Compose)
By default, Column {} has the width of it's largest child element. How can I make all other elements to fit the width...
Read more >
Am I the only one confused by Jetpack Compose Rows ...
The solution above seems to stack one Column on top of another -- which is scrambling my brain -- because that seems me...
Read more >
Rows and Columns - Jetpack Compose - YouTube
This is an improvement from Android Views, where you need to avoid nested layouts for performance reasons. Also you are going to see...
Read more >
Fundamentals of Compose layouts and modifiers
Welcome to the MAD Skills series on Jetpack Compose layouts and modifiers! In this first post, we're going to start our journey by ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found