TextView在用selecor做背景时,要用
android:focusableInTouchMode="true"
android:clickable="true"
android:background="@drawable/bottom_menu_bg"/>
如果 用了 android:duplicateParentState="true"
会有影响,
另外加入图片只能用compoundDrawable,所以还要setpadding才能让图片居中。