Closed khalid-mahmood closed 7 years ago
You can extend SimpleDialogFragment and set custom logic in override onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?) { val content = super.onCreateView(inflater, container, savedInstanceState) val positiveButton = content.findViewById(com.avast.android.dialogs.R.id.sdl_button_positive) as Button val positiveButtonStack = content.findViewById(com.avast.android.dialogs.R.id.sdl_button_positive_stacked) as Button positiveButton.isEnabled = false positiveButtonStack.isEnabled = false }
@kuFEAR Thanks for reply. since i have forgot why this was needed.
how i can disable positive button and enable it on demand ?