CarTrawler Cash
CarTrawler Cash provides enhanced cash voucher merchandising throughout the booking flow.
Applying the theme
Override the following properties in your SDK theme
<style name="CarTrawlerSDKTheme" parent="CTDayNightTheme" >
//..
<item name="ctCashBgStartColor">@color/bannerBgStartColor</item>
<item name="ctCashBgEndColor">@color/bannerBgEndColor</item>
<item name="ctCashPrimaryTextColor">@color/colorOnSurface</item>
<item name="ctCashSecondaryTextColor">@color/colorSecondary</item>
<item name="ctCashLogoUrl">https://www.mylogo.com/mylogo.png</item>
<item name="ctCashSmallLogoUrl">https://www.mylogo.com/mylogo.png</item>
</style>
For every logo url you can provide a local drawable instead of a remote url. All you need is to use the following attributes:
<style name="CarTrawlerSDKTheme" parent="CTDayNightTheme" >
<item name="ctCashLogoDrawable">@drawable/my_logo</item>
<item name="ctCashSmallLogoDrawable">@drawable/my_logo_small</item>
</style>
If you provide both a drawable and a url the drawable will take priority, so your url will never be used.
If you don’t provide any attributes for the logo, the component that shows the logo will be hidden (View.GONE
)