diff --git a/personalization-sdk/src/main/kotlin/com/personalization/inAppNotification/view/component/text/AlertText.kt b/personalization-sdk/src/main/kotlin/com/personalization/inAppNotification/view/component/text/AlertText.kt index ab48f9a6..7c4f96b6 100644 --- a/personalization-sdk/src/main/kotlin/com/personalization/inAppNotification/view/component/text/AlertText.kt +++ b/personalization-sdk/src/main/kotlin/com/personalization/inAppNotification/view/component/text/AlertText.kt @@ -20,5 +20,7 @@ class AlertText @JvmOverloads constructor( textSize = 16f gravity = Gravity.START setTextColor(ResourcesCompat.getColor(resources, android.R.color.black, null)) + + setPadding(0, 0, 0, 0) } } diff --git a/personalization-sdk/src/main/res/layout/alert_button_container.xml b/personalization-sdk/src/main/res/layout/alert_button_container.xml index 8570bc83..e44f018b 100644 --- a/personalization-sdk/src/main/res/layout/alert_button_container.xml +++ b/personalization-sdk/src/main/res/layout/alert_button_container.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingHorizontal="@dimen/large_margin" android:orientation="horizontal" android:paddingTop="@dimen/large_margin"> @@ -37,7 +38,7 @@ android:layout_height="match_parent" android:clickable="true" android:focusable="true" - app:buttonColor="@color/colorPrimary" + app:buttonColor="@color/buttonAcceptColor" app:buttonText="@string/alert_dialog_button_accept_title" app:textColor="@color/white" app:textSize="18sp" /> diff --git a/personalization-sdk/src/main/res/layout/alert_dialog.xml b/personalization-sdk/src/main/res/layout/alert_dialog.xml index 678a2211..07377587 100644 --- a/personalization-sdk/src/main/res/layout/alert_dialog.xml +++ b/personalization-sdk/src/main/res/layout/alert_dialog.xml @@ -29,13 +29,14 @@ android:layout_height="wrap_content" android:background="@drawable/rounded_background" android:orientation="vertical" - android:paddingHorizontal="@dimen/large_margin" android:paddingTop="@dimen/large_margin" android:translationY="-16dp"> diff --git a/personalization-sdk/src/main/res/values/colors.xml b/personalization-sdk/src/main/res/values/colors.xml index 804aac0f..26928ab6 100644 --- a/personalization-sdk/src/main/res/values/colors.xml +++ b/personalization-sdk/src/main/res/values/colors.xml @@ -8,4 +8,5 @@ #FF0000 #00FF00 #FFFFFF + #3B82F6 diff --git a/sample/src/main/kotlin/com/personalization/sample/AbstractMainActivity.kt b/sample/src/main/kotlin/com/personalization/sample/AbstractMainActivity.kt index 3e3d838d..475a67c6 100644 --- a/sample/src/main/kotlin/com/personalization/sample/AbstractMainActivity.kt +++ b/sample/src/main/kotlin/com/personalization/sample/AbstractMainActivity.kt @@ -119,7 +119,7 @@ abstract class AbstractMainActivity internal constructor( buttonNegativeText = buttonNegative, buttonPositiveText = buttonPositive, buttonNegativeColor = ContextCompat.getColor(this, R.color.colorGray), - buttonPositiveColor = ContextCompat.getColor(this, R.color.colorPrimary), + buttonPositiveColor = ContextCompat.getColor(this, R.color.buttonAcceptColor), onNegativeClick = { Log.d(this.localClassName, ": onNegativeClick") }, diff --git a/sample/src/main/res/values/colors.xml b/sample/src/main/res/values/colors.xml index 804aac0f..26928ab6 100644 --- a/sample/src/main/res/values/colors.xml +++ b/sample/src/main/res/values/colors.xml @@ -8,4 +8,5 @@ #FF0000 #00FF00 #FFFFFF + #3B82F6