请大神帮我看看这是什么问题

来源:互联网 发布:rpc动态端口 编辑:程序博客网 时间:2024/04/29 05:16
我在一个按钮点击事件之后改变这个按钮和另一个按钮的背景图片,但是改变背景之后,发现按钮上的文字不在了,请问这是怎么回事?
btn_tiqu.setBackgroundResource(R.drawable.icon_rech_left_2);
btn_tiqu.setTextColor(color.white);
btn_tiqu.setText("流量提取");
btn_rech.setBackgroundResource(R.drawable.icon_rech_right);
btn_rech.setTextColor(color.black);
btn_rech.setText("流量充值");

0 0