1

How to replace the exising layout of @include programmatically?

view story
linux-howto

http://stackoverflow.com – 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 <include android:id="@+id/promo1" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/one_promo"> </include> in java code I want like below code to replace the existing layout with new. View v = findViewById(R.id.promo1); v.setView(R.layout.new_promo); Is there any facility to change like this after including with @include within xml file. (HowTos)