Skip to content

Commit

Permalink
Fix bug for setShadowVisible.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecialCyCi committed Oct 20, 2014
1 parent e647b28 commit 27b6491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ResideMenu/src/com/special/ResideMenu/ResideMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ public void setBackground(int imageResrouce){
*/
public void setShadowVisible(boolean isVisible){
if (isVisible)
imageViewShadow.setImageResource(R.drawable.shadow);
imageViewShadow.setBackgroundResource(R.drawable.shadow);
else
imageViewShadow.setImageBitmap(null);
imageViewShadow.setBackgroundResource(0);
}

/**
Expand Down

0 comments on commit 27b6491

Please sign in to comment.