Skip to content

Commit

Permalink
Release with Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-manshu committed Oct 8, 2020
1 parent 00a385d commit 43de275
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions sticker/src/main/java/com/gappein/ui/StickerView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ import android.graphics.Paint
import android.util.AttributeSet
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.core.content.res.ResourcesCompat
import com.gappein.R
import com.gappein.util.generateColor
import com.gappein.util.getFont

class StickerView : AppCompatTextView {

companion object {
private const val DEFAULT_STROKE = 4f
private const val DEFAULT_SHADOW = 4f
private const val DEFAULT_TEXT_SIZE = 40f
private const val DEFAULT_TEXT = " "
private const val STROKE_WIDTH: Float = 2.toFloat()
private const val STROKE_WIDTH: Float = 3.toFloat()
private const val STROKE_COLOR: Int = Color.WHITE
}

Expand Down Expand Up @@ -47,9 +45,9 @@ class StickerView : AppCompatTextView {

private fun updateShadowColor() {
setShadowLayer(
DEFAULT_STROKE,
DEFAULT_STROKE,
DEFAULT_STROKE,
DEFAULT_SHADOW,
DEFAULT_SHADOW,
DEFAULT_SHADOW,
_shadowColors.getColorForState(drawableState, 0)
)
}
Expand Down

0 comments on commit 43de275

Please sign in to comment.