LinearLayout creation error solved.

Problem was in wrong orientation of parent LinearLayout