PorterDuff.Mode error

Android PorterDuff.Mode error: PorterDuff cannot be resolved to a variable
 
 
Answers:
 

Add this to your imports, because for some reason, Eclipse doesn't automatically do it for this one:

import android.graphics.PorterDuff;

 

 

Use only Mode.DARKEN, and then import (以验证)

import android.graphics.PorterDuff.Mode;


posted on 2014-11-18 15:18  小呀么小二郎  阅读(260)  评论(0编辑  收藏  举报

导航