Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fake empty container layout
- RelativeLayout lContainerLayout = new RelativeLayout( this );
- lContainerLayout.setLayoutParams( new RelativeLayout.LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT ) );
- RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT );
- //params.addRule( RelativeLayout.ALIGN_PARENT_BOTTOM );
- params.addRule( RelativeLayout.ALIGN_PARENT_TOP );
- params.addRule( RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE );
- mAdView.setLayoutParams( params );
- lContainerLayout.addView( mAdView );
- // Adding full screen container
- addContentView( lContainerLayout, new LayoutParams( LayoutParams.FILL_PARENT , LayoutParams.FILL_PARENT ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement