| setBackgroundColor() | ใช้กำหนดสีพื้นหลังให้กับ Object View |
|---|
method:setBackgroundColor ( int color )
return type:void
content:ใช้กำหนดสีพื้นหลังให้กับ Object View
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); View view = new View ( this ); view.setBackgroundColor ( Color.BLACK ); setContentView( view ); } }