Android : Non static method cannot be refrence as a static method

on Sunday, March 22, 2015



I just want to create drawable using color.


so i use this method Drawable background = Drawable.setColorFilter( 0xffff0000, PorterDuff.Mode.MULTIPLY ); here is my full code



@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.taketestactivity);
Drawable background = Drawable.setColorFilter( 0xffff0000, PorterDuff.Mode.MULTIPLY );
}

0 comments:

Post a Comment