package com.casic.br.extensions

import android.view.View
import com.casic.br.utils.LocaleConstant

fun View.disableView(vararg view: View?) {
    this.alpha = LocaleConstant.VIEW_DISABLE
    this.isEnabled = false
    view.forEach {
        it?.isEnabled = false
    }
}

fun View.enableView(vararg view: View?) {
    this.alpha = LocaleConstant.VIEW_ENABLE
    this.isEnabled = true
    view.forEach {
        it?.isEnabled = true
    }
}