1

My activity extends another custom class but I need to use ListFragment.

Is there any way to solve this?

Alex Zaitsev
  • 2,013
  • 4
  • 30
  • 56
  • Its something similar to this: http://stackoverflow.com/questions/9412759/extend-activity-and-activitygroup – waqaslam Sep 20 '12 at 14:10

1 Answers1

0

Make the custom class extend ListFragment.

ePeace
  • 1,987
  • 1
  • 17
  • 23
  • see, all my activities extends this class, if I should extend another activity from simple fragment what to do? – Alex Zaitsev Sep 20 '12 at 14:15
  • I'm guessing your custom class extends Fragment? Copy your custom class, call it listcustomclass and have it extends ListFragment, so when you need a listfragment, extend it from listcustomclass – ePeace Sep 20 '12 at 14:40