JAVA中这样写:setBackgroundDrawable(new BitmapDrawable(("bg_focus.png")));
我估计是editText. setBackgroundDrawable(android.R.drawable.editbox_background);你试试,用代码智能提示看看。
用activity.findviewbyid直接引用就行了。不过一般用不着。