0
我想从兼容库中覆盖ListFragment的onAttach()http://developer.android.com/reference/android/app/Fragment.html#onAttach(android.app.Activity)方法,但似乎无法找到... 我错了,或者?也许这个方法是不是在兼容性库实现,我将不得不重写另一种方法列表onAttach()兼容库ListFragment
我想从兼容库中覆盖ListFragment的onAttach()http://developer.android.com/reference/android/app/Fragment.html#onAttach(android.app.Activity)方法,但似乎无法找到... 我错了,或者?也许这个方法是不是在兼容性库实现,我将不得不重写另一种方法列表onAttach()兼容库ListFragment
我试图重写:
@Override
public void onAttach(Activity activity) {
// TODO Auto-generated method stub
super.onAttach(activity);
}
,我应该有覆盖:
@Override
public void onAttach(SupportActivity activity) {
// TODO Auto-generated method stub
super.onAttach(activity);
}
请注意:第一种方法的“活动”和第二种方法的“SupportActivity”..