I could not find a straightforward way to do that, I use reflection
APIs to get rid of it.
TabWidget tw = getTabWidget();
Field mBottomLeftStrip;
Field mBottomRightStrip;
try {
mBottomLeftStrip = tw.getClass().getDeclaredField
("mBottomLeftStrip");
mBottomRightStrip = tw.getClass().getDeclaredField
("mBottomRightStrip");
if(!mBottomLeftStrip.isAccessible()) {
mBottomLeftStrip.setAccessible(true);
}
if(!mBottomRightStrip.isAccessible()){
mBottomRightStrip.setAccessible(true);
}
mBottomLeftStrip.set(tw, getResources().getDrawable
(R.drawable.transparent_background));
mBottomRightStrip.set(tw, getResources().getDrawable
(R.drawable.transparent_background));
} catch (Exception e) {
e.printStackTrace();
}
--Pushkar
On Jul 28, 11:32 am, Dandroid <[email protected]> wrote:
> I've set the background image of my tabs using:
>
> tabs.getTabWidget().getChildAt(index).setBackgroundResource(resource)
>
> and then modified the dimensions of the tabs using:
>
> tabs.getTabWidget().getChildAt(index).getLayoutParams().height =
> height;
> tabs.getTabWidget().getChildAt(index).getLayoutParams().width = width;
>
> This worked out great, but there is a line (like a border) under (all)
> thetabbuttons that I cannot make invisible.
> Is there any theme that can be applied in order to make it go away?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---