1、setCompoundDrawables
//代码设置drawableLeft
Drawable drawableLeft = getResources().getDrawable(R.drawable.home_ic_search);
drawableLeft.setBounds(0, 0 , drawableLeft.getMinimumWidth(), drawableLeft.getMinimumHeight());
et_search.setCompoundDrawables(drawableLeft, null, null, null);
et_search.setCompoundDrawablePadding(ValueUtil.dip2px(getActivity(), 5));
2、android:textIsSelectable
android:textIsSelectable="true"
textView.setTextIsSelectable(true);