탭위젯의 하단 그림자를 제거하기위해서...
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.blank));
//mBottomRightStrip.set(tw, getResources().getDrawable(R.drawable.blank));
} catch (java.lang.NoSuchFieldException e) {
// possibly 2.2 and above device
try {
Method stripEnabled = tw.getClass().getDeclaredMethod("setStripEnabled", boolean.class);
stripEnabled.invoke(tw, false);
} catch (Exception e1) {
e1.printStackTrace();
}
} catch (Exception e) {
Log.e("Failed removing tabui bottom strip", e.toString());
}
이 소스중에 R.drawable.blank
이녀석 내용을 당췌 구할수가없네요...
내용물 좀 답변 부탁해요^^;