File tree Expand file tree Collapse file tree
checkabletextview/src/main/java/com/devzone/checkabletextview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import android.util.TypedValue
99import android.view.LayoutInflater
1010import android.view.View
1111import android.widget.RelativeLayout
12+ import androidx.annotation.RestrictTo
1213import androidx.appcompat.app.AppCompatDelegate
1314import androidx.core.content.ContextCompat
1415import kotlinx.android.synthetic.main.layout_checkable_text.view.*
@@ -139,6 +140,12 @@ class CheckableTextView : RelativeLayout {
139140 /* -------------------------------------------------public functions------------------------------------------------------------------------------------------*/
140141
141142
143+
144+ /* *
145+ * Change [CheckableTextView] click state
146+ * @param isClickable = pass true for enable clicks and false for disable clicks.
147+ */
148+ @RestrictTo(RestrictTo .Scope .TESTS )
142149 fun setClickEnabled (isClickable : Boolean ) {
143150 // 0.5 second delay added to ongoing ripple animation to complete (if any)
144151 rootRL.postDelayed(
You can’t perform that action at this time.
0 commit comments