How to set the view of an Activity in a Fragment?

Wednesday, July 9, 2014

Is it possible to put a view from a library in a fragment without touching the library ?


I.E: - MainActivity extends FragmentActivity - FragmentActivity extends Fragment - LibActivity extends Activity


I would like to put the view from "LibActivity" to "FragmentActivity"


I tried new Intent(getActivity(), LibActivity) in the FragmentActivity but the view is displayed on all the screen while I wanted to display it just in the fragment.


What I need: http://ift.tt/1rRez8q


What I have: http://ift.tt/1rRewcM


Thanks.







http://ift.tt/1rRewcV