FlexboxLayout does not work properly in ActionBar
See original GitHub issueThe code in xml is as follows:
<Page.actionBar>
<ActionBar>
<ActionBar.titleView>
<FlexboxLayout flexDirection="row" justifyContent="space-between">
<Label text="leftIcon" />
<Label text="middleText" />
<Label text="rightIcon" />
</FlexboxLayout>
</ActionBar.titleView>
</ActionBar>
</Page.actionBar>
The 3 labels are shown side by side which is not what justifyContent=“space-between” means.
more info:
- development machine: Windows 10 64bit
- target platform: android
- cli version: 3.2.1
- Cross-platform modules: 3.2.0
- Runtime: 3.2.0
- Plugin: no plugin used.
Thank you.
<bountysource-plugin>Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
FlexBoxLayout align-self:flex-end not working in nativescript-vue
I don't understand this, in web flexbox it works for me, and since I set flex direction to row all my child items...
Read more >FlexboxLayout does not work properly in ActionBar
FlexboxLayout does not work properly in ActionBar · 1. development machine: Windows 10 64bit · 2. target platform: android · 3. cli version:...
Read more >Build flexible layouts with FlexboxLayout
At Google I/O last year we announced ConstraintLayout, which enables you to build complex layouts while maintaining a flat view hierarchy. It is...
Read more >FlexboxLayout - NativeScript-Vue
This property has no effect when the flex container has only one line. Valid values: flex-start (lines are packed to the start of...
Read more >FlexboxLayout – Part 1 - Styling Android
In May 2016 a new project was pushed to the official Google Github repo named flexbox-layout. It is an Android layout manager which...
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 Free
Top 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
Hi @bigradish, To be able to set the needed position of the label as you wish: one of the label to be left aligned second one on the right and third, in the middle, you could use a combination of WrapLayout and DockLayout. For example:
XML
CSS
This still doesn’t work, do you know anything about this?