kartGIS
kartGIS

Reputation: 699

Tabs at tablet in android

I have a problem in one of my apps. I have a viewpage with two tabs that show different content. In my phone this tabs habe the full width of the phone. But in tablet the are a black space at both side of the screen. In the example you can see what i am talking about. Any help? Thx in advance.

Tablet image

Upvotes: 0

Views: 67

Answers (2)

kartGIS
kartGIS

Reputation: 699

Thx for all! I solve it using in activityMain.java onCreate method.

        actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.bluedark)));  

Upvotes: 0

E.Abdel
E.Abdel

Reputation: 1992

I think that you use center gravity in your app tab layout, if the case replace app:tabGravity=”center” to app:tabGravity=”fill” in your tab Layout

Upvotes: 0

Related Questions