Android : Customize Zendesk Rate My App Ui
How can I customize rate my app dialog of Zendesk. In sample app a style is added in style.xml file and it is working. But I don't know how to apply that style for Rating dialog.
Solution 1:
Issue resolved by creating a separate theme for the activity that is using RateMyApp dialog and applied styles for button, title and divider of dialog as below
<style name="CustomTheme" parent="Theme.AppCompat">
<item name="RateMyAppPaddingTop">@dimen/rma_padding_top</item>
<item name="RateMyAppPaddingBottom">@dimen/rma_padding_bottom</item>
<item name="RateMyAppButtonStyle">@style/rma_button_style</item>
<item name="RateMyAppTitleStyle">@style/rma_title_style</item>
<item name="RateMyAppDividerStyle">@style/rma_divider_style</item>
<item name="RateMyAppDividerHeight">@dimen/rma_divider_height</item>
</style>
<dimen name="rma_padding_top">24dp</dimen>
<dimen name="rma_padding_bottom">24dp</dimen>
<style name="rma_button_style">
<item name="android:background">@color/light_background</item>
<item name="android:gravity">center</item>
<item name="android:textSize">18sp</item>
<item name="android:layout_weight">1</item>
<item name="android:textColor">@color/black</item>
<item name="android:lineSpacingMultiplier">1.25</item>
</style>
<style name="rma_divider_style">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">@color/divider</item>
</style>
<style name="rma_title_style" parent="rma_button">
<item name="android:textSize">22sp</item>
<item name="android:background">@android:color/white</item>
<item name="android:lineSpacingMultiplier">1.25</item>
<item name="android:textColor">@color/black</item>
</style>
Post a Comment for "Android : Customize Zendesk Rate My App Ui"