Skip to content

Commit

Permalink
Fix no databinding
Browse files Browse the repository at this point in the history
  • Loading branch information
Joao Rutkoski committed Aug 7, 2018
1 parent 9efdc06 commit 3653a5e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ package com.opencraft.library
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.TypedArray
import android.databinding.InverseBindingMethod
import android.databinding.InverseBindingMethods
import android.graphics.Color
import android.graphics.LinearGradient
import android.graphics.Point
import android.graphics.Shader
import android.support.v7.widget.AppCompatTextView
import android.util.AttributeSet

@InverseBindingMethods(InverseBindingMethod(type = GradientTextView::class, attribute = "android:text"))
class GradientTextView constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : AppCompatTextView(context, attrs, defStyleAttr) {

constructor(context: Context) : this(context, null)
Expand Down

0 comments on commit 3653a5e

Please sign in to comment.