Android examples for User Interface:View Child
set Child View Background Color
//package com.java2s; import android.view.View; public class Main { public static void setBackgroundColor(View container, int id, int color) { if (container == null) return; container.findViewById(id).setBackgroundColor(color); }/*w w w .j a va2s . co m*/ }