我用Fragment动态加载的方法
public class MainActivity extends FragmentActivity {
tabHost = (TabHost) findViewById(android.R.id.tabhost);
tabWidget = (TabWidget) findViewById(android.R.id.tabs);
LinearLayout layout = (LinearLayout)tabHost.getChildAt(0);
TabWidget tw = (TabWidget)layout.getChildAt(1);
tabIndicator1 = (LinearLayout) LayoutInflater.from(this)
.inflate(R.layout.tab_indicator, tw, false);
TextView tvTab1 = (TextView)tabIndicator1.getChildAt(1);
ImageView ivTab1 = (ImageView)tabIndicator1.getChildAt(0);
ivTab1.setBackgroundResource(R.drawable.selector_mood_home);
tvTab1.setText(R.string.buttom_home);
}
请问如何实现 ImageView ivTab1 冒小气泡(类似购物车上红色的小数字)的效果?