Change the background color of Actionbar with Tabactivity

Asked

Viewed 301 times

0

I’m having trouble changing the background.

When I wear it like that, with the extends of TabActivity:

public class HomeTabActivity extends TabActivity {...
    private android.support.v7.app.ActionBar _actionBar;    
}

I can’t give a getSupportActionBar(); and then I change the color. There’s some other way to change?

  • The getSupportActionBar belongs to ActionBarActivity, recalling that the TabActivity was depreciated. I think you can exchange this inheritance without problems.

  • I can put ActionBarActivity hassle-free?

  • 1

    Yes, according to the documentation (http://developer.android.com/reference/android/app/TabActivity.html).

  • @Wakim, can you give me an answer so I can mark it as correct?

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.