i have in my layout.xml this lines :
<include android:id="@+id/promo1" android:layout_width="fill_parent"
android:layout_height="fill_parent" layout="@layout/one_promo">
</include>
<include android:id="@+id/promo2" android:layout_width="fill_parent"
android:layout_height="fill_parent" layout="@layout/one_promo">
</include>
<include android:id="@+id/promo3" android:layout_width="fill_parent"
android:layout_height="fill_parent" layout="@layout/one_promo">
</include>
I want to do this programmatically in my Java code.
Please any help?
thanks in advance
Use LayoutInflater as i shown below
Define a Relative Layout in your xml
Map it in your Java code
Use Layout Inflater