I saw this answer but my question : is there no way to achieve this without nesting LinearLayouts ?
Asked
Active
Viewed 2,333 times
2
-
I want to add unknown number of views from code – mouayad Dec 14 '14 at 07:06
1 Answers
0
Try with this code..
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<View
android:layout_width="fill_parent"
android:layout_height="1.5dp"
android:background="@color/green"/>
</LinearLayout>

Amitabha Biswas
- 3,281
- 1
- 11
- 23