Android FlexboxLayout Contents Programmatically -


i'm trying add view flexboxlayout this. enter image description here enter image description here

my questions these.

  1. why flexboxlayout.getlayoutparams() return framelayout.layoutparams???

  2. ok, <1> true, then,,, how can apply 45% width of flexlayout subview programmatically???(in picture's case , edittext)

i think (1)"get or make flexboxlayoutparams way" (2)"flexboxlayoutparams.setflexbasispercent(45)" (3)"edittext.setlayoutparams(flexboxlayoutparams)" right way,,, but, don't know how (1) order!

please me.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -