With api 25, there is no problem, but with api 17, the elements simply do not respond to setLayoutParams, setWidth, and so on. What should be done in this case?
Yes, simple code - in the emulator with api 25 works, with api 17 does not work.
FrameLayout ht1 = (FrameLayout) ty.getChildAt(c); TextView tv = (TextView) ht1.getChildAt(0); tv.setLayoutParams(new FrameLayout.LayoutParams(len,FrameLayout.LayoutParams.MATCH_PARENT)); Also, setWith does not work, and so on, that is, the parameters change, but the element is not drawn again. I remember that I did something with the mesure method, it seemed to work, but now I don’t remember how it is done in detail.
FrameLayout.LayoutParamswithViewGroup.LayoutParams- Serodv