JakeWharton/ActionBarSherlock — Issue #101: ActionBar with Tabs and custom repeating background looks bad
Author: jondwillis
Created: 2011-11-03 23:01:41+00:00
State: open

This isn't a bug per se, but I wanted to bring it to your attention. In 3.4.0, I am setting a custom background drawable that has a repeating tile mode for my ActionBar. When I later add tabs, and the ActionBar is small (like on a WVGA device in portrait mode) the bar expands its height and the drawable is repeated, which in my case makes the tab look bad. I would expect this portion of the ActionBar to be transparent and show the "window background" - in my case just black.

Example screenshot: http://i.imgur.com/VlhuU.png

Example snippet:

```
final Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.actionbar_bg);

final BitmapDrawable bitmapDrawable = new BitmapDrawable(bmp);
bitmapDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);

final ActionBar bar = getSupportActionBar();
bar.setBackgroundDrawable(bitmapDrawable);
```

And then later...

```
bar.addTab(...);
```

A possible workaround would be to use ```Tab.setCustomView(...)```, but that is not an elegant solution.