...
|
...
|
@@ -10,6 +10,7 @@ import android.text.style.ForegroundColorSpan |
|
|
import android.view.LayoutInflater
|
|
|
import android.view.View
|
|
|
import androidx.core.content.ContextCompat
|
|
|
import androidx.core.view.isVisible
|
|
|
import com.br_technology.securitytrain_master.R
|
|
|
import com.br_technology.securitytrain_master.databinding.DialogTitleBinding
|
|
|
import com.br_technology.securitytrain_master.expand.dp2px
|
...
|
...
|
@@ -73,13 +74,21 @@ class DialogTitle(context: Context) : Dialog(context, R.style.UserDefaultDialog) |
|
|
return this
|
|
|
}
|
|
|
|
|
|
fun setTitleIsVisible(isVisible: Boolean) : DialogTitle {
|
|
|
if (isVisible) {
|
|
|
binding.title.isVisible = true
|
|
|
}else{
|
|
|
binding.title.isVisible = false
|
|
|
}
|
|
|
return this
|
|
|
}
|
|
|
|
|
|
fun setImageTitle(ivTitle: Int): DialogTitle {
|
|
|
binding.ivTitle.setImageResource(ivTitle)
|
|
|
return this
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fun hideCompleteButton(boolean: Boolean): DialogTitle {
|
|
|
if (boolean) {
|
|
|
binding.complete.visibility = View.GONE
|
...
|
...
|
|