diff --git a/libraries/dialogs/README.md b/libraries/dialogs/README.md index 021fa89e..da7fbdcd 100644 --- a/libraries/dialogs/README.md +++ b/libraries/dialogs/README.md @@ -1,7 +1,7 @@ -$dialogsVersion = dialogs-1.2.4 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +$dialogsVersion = dialogs-1.2.8 [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ## Dialogs Dialogs is a bunch of BottomSheetDialogs to use in app to show user an information, agreement or list. @@ -101,6 +101,8 @@ All **Info Dialog** arguments plus these arguments will be applicable to show se | `selectedItemDrawable` | Int | Drawable resource for selected item icon. | null | | `selectedTextColor` | Int | Color resource for selected item text color. | null | | `showRadioButton` | Boolean | Radio button visibility | false | +| `titleTextColor` | Int | Color resource for title text color. | null | +| `animateCornerRadiusWhenExpand` | Boolean | Corner radius will be removed with an animation when set true. | false | Sample usage: ```kotlin @@ -109,6 +111,8 @@ selectionDialog { content = getContent() items = getItemsAsHtml() showItemsAsHtml = true + titleTextColor = R.color.colorPrimary + animateCornerRadiusWhenExpand = true selectedItemDrawable = R.drawable.ic_check selectedTextColor = R.color.colorPrimary showRadioButton = true diff --git a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/Builder.kt b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/Builder.kt index 28c05a81..350699ee 100644 --- a/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/Builder.kt +++ b/libraries/dialogs/src/main/java/com/trendyol/uicomponents/dialogs/Builder.kt @@ -102,6 +102,8 @@ class SelectionDialogBuilder internal constructor() : InfoDialogBuilder() { showContentAsHtml = it.showContentAsHtml, contentImage = it.contentImage, cornerRadius = it.cornerRadius, + animateCornerRadiusWhenExpand = it.animateCornerRadiusWhenExpand, + titleTextColor = it.titleTextColor, items = it.items, showItemsAsHtml = it.showItemsAsHtml, enableSearch = it.enableSearch, diff --git a/sample/src/main/java/com/trendyol/uicomponents/DialogsActivity.kt b/sample/src/main/java/com/trendyol/uicomponents/DialogsActivity.kt index f7042fe2..6dde43b7 100644 --- a/sample/src/main/java/com/trendyol/uicomponents/DialogsActivity.kt +++ b/sample/src/main/java/com/trendyol/uicomponents/DialogsActivity.kt @@ -110,6 +110,7 @@ class DialogsActivity : AppCompatActivity() { showContentAsHtml = true showCloseButton = false contentImage = android.R.drawable.ic_dialog_email + animateCornerRadiusWhenExpand = true items = getListItems() onItemSelectedListener = this@DialogsActivity.onItemSelectedListener onItemReselectedListener = this@DialogsActivity.onItemReselectedListener