我正在使用 MobClix 显示广告,但有些广告不是居中对齐的,而是左对齐的。我已将视图的 contentMode 设置为 UIViewContentModeCenter 但它不起作用,如何解决这个问题。
(在图像末尾有一些空白)
我在 android 上使用 Mobclix SDK 中的 MobclixMMABannerXLAdView,它具有固定大小。至于我的布局调整以在屏幕中央显示广告。对于 RelativeLayout 以下代码工作正常:
<com.mobclix.android.sdk.MobclixMMABannerXLAdView
android:id="@+id/advertising_banner_view"
android:layout_height="50dp"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:tag="adspace" />