Java tutorial
//package com.java2s; import android.app.Activity; import android.graphics.Color; import android.view.View; public class Main { public static void setTransparent(Activity r, final View v) { r.runOnUiThread(new Runnable() { @Override public void run() { v.setBackgroundColor(Color.TRANSPARENT); } }); } }