Java 类com.facebook.ads.AdChoicesView 实例源码

项目:pubnative-android-sdk    文件:FacebookNativeAdModel.java   
@Override
public View getContentInfoView() {
    View result = null;
    if (mNativeAd != null) {
        LinearLayout adChoicesContainer = new LinearLayout(mContext);
        adChoicesContainer.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
        adChoicesContainer.setGravity(Gravity.CENTER);
        adChoicesContainer.setOrientation(LinearLayout.VERTICAL);
        adChoicesContainer.addView(new AdChoicesView(mContext, mNativeAd, true));
        return adChoicesContainer;
    }
    return result;
}