Pergunta

Since the new Android SDK Update I have a ActionBarActivity for my MainActivity.

Before that is was a normal activity and I just replaced it with the: ListActivity

How can I add use the ListActivity in my new MainActivity which is a ActionBarActivity?

Foi útil?

Solução

You can get rid of extends ActionbarActivity and extends ListActivity. You could also use ListFragment.

You can extend ActionBarActivtiy and use ListFragment from the support library

http://developer.android.com/reference/android/support/v4/app/ListFragment.html

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top