如何比较两个drawables,我这样做但没有取得任何成功
public void MyClick(View view)
{
Drawable fDraw = view.getBackground();
Drawable sDraw = getResources().getDrawable(R.drawable.twt_hover);
if(fDraw.equals(sDraw))
{
//Not coming
}
}
Run Code Online (Sandbox Code Playgroud) android ×1