| setShadowLayer() | ใช้กำหนด เงา ให้กับตัวอักษร ของ Object TextView |
|---|
method:setShadowLayer ( float radius, float dx, float dy, int color )
return type:void
content:ใช้กำหนด เงา ให้กับตัวอักษร ของ Object TextView
example:public class AndroidBamboo extends Activity { public void onCreate( Bundle savedInstanceState ) { super.onCreate ( savedInstanceState ); TextView text = new TextView ( this ); text.setText ( "WelCome To BambooLabCode.com" ); text.setShadowLayer ( 0.2f, 10, 20, Color.RED ); setContentView ( text ); } }