在res/color 文件夹中建立textview_selectortv.setTextColor(getResources().getColorStateList (R.color. textview_selector));