2013-06-28 152 views
0

我得到的已经从SherlockActivity 延长现在我想用一个DialogFragment与支持库如何使用

FragmentManager fm = getSupportFragmentManager(); 
HelpDialogFragment testDialog = new HelpDialogFragment(); 
testDialog.setRetainInstance(true); 
testDialog.show(fm, "fragment_name"); 

但getSupportFragmentManager()的活动未扩展功能;如果我没有从FlockmentActivity延伸,我不能使用SherlockActivity,就不能使用它。
任何人都可以给我一些方向?

回答

0

您需要延长从SherlockFragmentActivity你的活动,你的碎片SherlockFragment和SherlockDialogFragment

+0

OFC您DialogFragments,非常感谢! –