Skip to content

Commit

Permalink
Lib-core: changed the code for shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielemariotti committed Nov 12, 2014
1 parent f5b5e4d commit 17388cc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.LayoutRes;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -291,6 +290,7 @@ protected void initView() {

}


@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void drawableHotspotChanged(float x, float y) {
Expand Down Expand Up @@ -421,10 +421,7 @@ protected void retrieveLayoutIDs(){
*/
protected void setupShadowView() {
if (mCard != null && mCard.getCardElevation() != null) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
ViewCompat.setElevation(this,mCard.getCardElevation());
else
ViewCompat.setElevation(this,mCard.getCardElevation());
this.setCardElevation(mCard.getCardElevation());
}
}

Expand Down

0 comments on commit 17388cc

Please sign in to comment.