I have the following xml:
fragment1.xml
<include
android:id="@+id/customized_layout"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_gravity="bottom"
/>
..
/>
In this Fragment how can I add programmatically the layout I want to include in the customized_layout?
I have the following:
@InjectView (R.id. customized_layout) RelativeLayout customLayout;
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.inject(this, view);
//customLayou.addLayout(...) ??
}