Change the background color of ActionBar with TabActivity

0

I'm having trouble changing background .

When I use this way, with extends of TabActivity :

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

I can not give getSupportActionBar(); to later I change the color. Is there any other way to change?

    
asked by anonymous 20.10.2014 / 19:15

1 answer

1

What you can do is your activity inherit from ActionBarActivity.

Then, you get getSupportActionBar () and add the tabs.

See the documentation:

link

    
20.10.2014 / 19:56