fbsamples / audience-network

Open source projects to demonstrate SDK and sample code usages and integration, and to collaborate and support peers in this community.
https://developers.facebook.com/docs/audience-network
Other
319 stars 370 forks source link

Native Video Ad Alignment Issue #64

Closed greywolfhalil closed 6 years ago

greywolfhalil commented 6 years ago

I am using native ads inside recyclerview. Image ads fine but video ads has alignment issue.

Device: LG G4 H815TR Android 6.0 API 23 SDK Version: 'com.facebook.android:audience-network-sdk:4.+' XML: Same as fbsamples RCPY MediaView Height: I try 100dp, 175dp, 200dp, 225dp, 250dp, 275dp, 300dp. All heights has same issue. When i use wrap_content for mediaview everything is ok, but i dont want too height video ads. When video adLoaded - Thumbnail is fine

Click play button and result

Edit With NativeAdView.render no problem

greywolfhalil commented 6 years ago

Issue fixed. Reason is my xml. I was changed parent view linearlayout to relativelayout. After undo changes and make default xml, issue has been fixed.