Programmatically added views are not visible due to YogaLayout on Android #614

Closed
opened 2017-08-11 10:56:20 -07:00 by birfincankafein · 2 comments
birfincankafein commented 2017-08-11 10:56:20 -07:00 (Migrated from github.com)

Report

Issues and Steps to Reproduce

Add button inside YogaLayout programmatically. Button will not visible because in YogaLayout button's node won't set as a child node to the layout's node.

Expected Behavior

Views inside YogaLayout should be visible.

Actual Behavior

Add button inside YogaLayout programmatically. Button will not visible

Link to Code

TextView mTextView_TextView2 = new TextView(getContext()); mTextView_TextView2.setBackgroundColor(getContext().getResources().getColor(R.color.success_color)); mTextView_TextView2.setTextColor(Color.WHITE); mTextView_TextView2.setText("JHDFTGHDBADBMNSASBDHJASDGBMASD"); YogaNode mYogaNode_TextView2 = new YogaNode(); mYogaNode_TextView2.setFlexGrow(1); mYogaNode_TextView2.setMargin(YogaEdge.HORIZONTAL, DimentionHelper.dpToPixels(5)); mYogaLayout_RootLayout.addView(mTextView_TextView2,mYogaNode_TextView2);

# Report - [x] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # Issues and Steps to Reproduce Add button inside YogaLayout programmatically. Button will not visible because in YogaLayout button's node won't set as a child node to the layout's node. # Expected Behavior Views inside YogaLayout should be visible. # Actual Behavior Add button inside YogaLayout programmatically. Button will not visible # Link to Code `TextView mTextView_TextView2 = new TextView(getContext()); mTextView_TextView2.setBackgroundColor(getContext().getResources().getColor(R.color.success_color)); mTextView_TextView2.setTextColor(Color.WHITE); mTextView_TextView2.setText("JHDFTGHDBADBMNSASBDHJASDGBMASD"); YogaNode mYogaNode_TextView2 = new YogaNode(); mYogaNode_TextView2.setFlexGrow(1); mYogaNode_TextView2.setMargin(YogaEdge.HORIZONTAL, DimentionHelper.dpToPixels(5)); mYogaLayout_RootLayout.addView(mTextView_TextView2,mYogaNode_TextView2);`
ngoctranfire commented 2018-01-15 06:26:54 -08:00 (Migrated from github.com)

Also seeing this issue. Any idea when this will be merged?

Also seeing this issue. Any idea when this will be merged?
NickGerleman commented 2023-04-25 20:43:45 -07:00 (Migrated from github.com)

We're deprecating the com.facebook.yoga.android.YogaLayout ViewGroup in the next major release of Yoga. We intend to still push out a new version aligned to the core Yoga 2.0. I have bulk closed ViewGroup issues to reflect that we are not planning to invest time into functional changes of the ViewGroup. and eventually intend to remove it from the repo.

We're deprecating the `com.facebook.yoga.android.YogaLayout` ViewGroup in the next major release of Yoga. We intend to still push out a new version aligned to the core Yoga 2.0. I have bulk closed ViewGroup issues to reflect that we are not planning to invest time into functional changes of the ViewGroup. and eventually intend to remove it from the repo.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#614
No description provided.