[Android][Column Rendering] [The elements inside the column do not get correct type of the parent view]
See original GitHub issuePlatform
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:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Addressing this issue is not currently on our roadmap, so closing. Please feel free to continue the conversation in this issue for future consideration.