android设置组件透明度

textremind.setBackgroundColor(Color.argb(178, 0, 0, 0));  //背景透明度 

      textremind.setTextColor(Color.argb(204, 255, 255, 255));

原文地址:https://www.cnblogs.com/androidsuperman/p/3236524.html