0
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_pressed="true"
android:drawable="@drawable/tab_profile_pressed_mdpi" />
<item android:drawable="@drawable/tab_profile_unselected_mdpi" />
</selector>
我该如何设置它们:自定义选项卡不响应按下状态
((ImageView)tabHost.getTabWidget().getChildTabViewAt(i).findViewById(R.id.single_tab_img)).setImageResource(unselected_img[i]);
没有。这是完全错误的。 – hunterp
我从我的一个应用程序复制并粘贴它。实际上它工作得很好。 – tier1
证明...检查出来。 http://joshclemm.com/blog/?p=136 – tier1