TeodorKolev TeodorKolev - 5 months ago 17
Android Question

Android Layout dynamic width

Is it possible to dynamically create Layouts which be 50% width, so 3rd one to be under first one? I have tried with

android:layout_weight=".5"
, but it doesn't working.

EDIT: No proper answer by far

Answer

Since there is no solution for that, you must use GridLayout instead of LinearLayout