How to replace the exising layout of @include programmatically?

codecrankz

New Member
In my xml file I have include layout using @inlcude and wants to replace that layout using id programmatically.For example in my layout I have the following xml files\[code\]<include android:id="@+id/promo1" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/one_promo"></include>\[/code\]in java code I want like below code to replace the existing layout with new.\[code\]View v = findViewById(R.id.promo1);v.setView(R.layout.new_promo);\[/code\]Is there any facility to change like this after including with @include within xml file.
 
Back
Top