タブバーのアイコンが表示されない
TabHost tabHost = getTabHost();
TabSpec barcodeInsertSpec = tabHost.newTabSpec("Barcode Insert");
barcodeInsertSpec.setIndicator("Barcode Insert", getResources().getDrawable(R.drawable.home2));
barcodeInsertSpec.setContent(new Intent(getBaseContext(), BarcodeInsertActivity.class));
tabHost.addTab(barcodeInsertSpec);
drawable/home2.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- When not selected, use that-->
<item android:drawable="@drawable/home22" />
</selector>
画像を異なるサイズ (48x48、32x32、24x24) の 3 つのフォルダーに入れます。
drawable-hdpi/home22.png のように