1

我想在屏幕底部设置 Inmobi 广告。

XAML中,我在底部设置了水平和垂直对齐方式。当我看到设计时,我在屏幕底部看到了 AdView,但是当我部署它时,默认情况下它出现在中间。

我很困惑我是否在任何地方都犯了错误,或者它总是出现在那个地方。

<StackPanel x:Name="ControlPanel" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,55" Grid.Row="3" Width="480"  >
                <Ad:IMAdView
                    x:Name="AdView1"
                    RefreshInterval="30"
                    AdSize="15"
                    AppId="fcc4c048-4686-42bc-a40c-b7fe8da70b40"
                    Height="110" Width="480"
                    AnimationType="SLIDE_IN_LEFT" HorizontalAlignment="Right" VerticalAlignment="Bottom"
                    Margin="0,0,0,30" >
                    <Ad:IMAdView.IMAdRequest>
                        <Ad:IMAdRequest 
                            LocationInquiryAllowed="False"/>
                    </Ad:IMAdView.IMAdRequest>
                </Ad:IMAdView>
            </StackPanel>
4

1 回答 1

1

将您的stackpanel的Horizo​​ntalAlignment属性从“Center”更改为“ Right ”将为您工作......

于 2014-09-16T06:58:09.170 回答