class TitleView extends LinearLayout
{
private FragmentActivity mActivity;
/**
* @param of type null
* @return mActivity of type FragmentActivity
* getter function for mActivity
* @since May 3, 2013
* @author rajeshcp
*/
public FragmentActivity getmActivity() {
return mActivity;
}
/**
* @param mActivity of type FragmentActivity
* @return of type null
* setter function for mActivity
* @since May 3, 2013
* @author rajeshcp
*/
public void setmActivity(FragmentActivity mActivity) {
this.mActivity = mActivity;
mActivity.getSupportFragmentManager();
}
public TitleView(Context context) {
super(context);
}
}
((TitleView)findViewbyId(R.id.your_lay_out_id)).setmActivity(yourFragmentActivity);
mActivity.getSupportFragmentManager();