Skip to content

Commit

Permalink
Bug fixing shadow on touch ripple effect
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamhadisyah committed Apr 3, 2022
1 parent 007992a commit 10feade
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VerticalIconButton/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ afterEvaluate {

groupId = 'com.github.ilhamhadisyah'
artifactId = 'VerticalIconButton'
version = '1.8.2'
version = '1.8.3'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.util.TypedValue
import android.view.View
import android.view.ViewOutlineProvider
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.ColorInt
Expand Down Expand Up @@ -77,6 +78,12 @@ class VerticalIconBoxedButton : MaterialCardView {
this.view = this
inflate(mContext, R.layout.icon_boxed_button_layout, this)

this.isClickable = true
this.isFocusable = true
cardElevation =0.0f
radius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 12f, context.resources.displayMetrics)
// outlineProvider = ViewOutlineProvider.

val arr: TypedArray =
mContext.obtainStyledAttributes(attrs, R.styleable.VerticalIconBoxedButton, styleAttr, 0)
iconFile = arr.getDrawable(R.styleable.VerticalIconBoxedButton_icon)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ class VerticalIconButton : MaterialCardView {
inflate(mContext, R.layout.button_layout, this)
this.isClickable = true
this.isFocusable = true
cardElevation =0.0f
radius = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 12f, context.resources.displayMetrics)

val arr: TypedArray =
mContext.obtainStyledAttributes(attrs, R.styleable.VerticalIconButton, styleAttr, 0)
Expand Down

0 comments on commit 10feade

Please sign in to comment.