Currently, some styles can't be configured through JS codes on the Android side. But these styles can be configured through res/values/styles.xml, as shown below.
Configure style for video feed
<!--Configure the radius of thumbnails--><stylename="FWFeedViewImageStyle" > <itemname="android:radius">12dp</item></style><!--Configure the style of video feed title--><stylename="FWFeedViewCaptionStyle"> <itemname="android:textColor">#ffffffff</item> <itemname="android:textSize">14sp</item> <itemname="android:gravity">top</item> <itemname="android:paddingLeft">8dp</item> <itemname="android:paddingRight">8dp</item> <itemname="android:background">#80000000</item></style><!--Configure the style of play button on the thumbnails--><stylename="FWPlayButtonStyle" > <itemname="android:layout_width">40dp</item> <itemname="android:layout_height">40dp</item> <itemname="android:src">@drawable/fw_play_icon</item></style><!--Configure the style of the ad badge on the thumbnails--><stylename="FwAdBadgeOnFeedStyle"> <itemname="android:background">@null</item> <itemname="android:textColor">@android:color/white</item> <itemname="android:textSize">@dimen/fw_font_size_14</item></style>
Custom layout
Android SDK provides custom attributes to style the VideoFeed item. If you want complete control over the UI, you can provide a custom layout that will be used for displaying the VideoFeed item.
Firstly, you can create a custom layout file(e.g. fw_feed_custom_layout.xml) and put it in the res/layout. Such as:
<!--Configure the background color of CTA button--><stylename="FWCtaButtonBgStyle"> <itemname="android:background">@drawable/fw_cta_bg_primary</item></style><!--Configure the style of CTA button--><stylename="FWCtaButtonLabelStyle"> <itemname="android:textSize">14sp</item> <itemname="android:textColor">#ffff6622</item></style><!--Configure the style of Add to cart button--><stylename="FWAddToCartButtonStyle"> <itemname="android:background">@drawable/fw_add_to_cart_button</item> <itemname="android:textColor">#ffffffff</item> <itemname="android:textSize">16sp</item></style><!--Configure the style of the ad badge on the player--><stylename="FwAdBadgeOnPlayerStyle" > <itemname="android:background">@null</item> <itemname="android:textColor">@android:color/white</item> <itemname="android:textSize">@dimen/fw_font_size_16</item></style>