farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

Ads taking most of the screen in Android 1.5 #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use Android 1.5
2. Ad takes up 2/3 of the screen

What is the expected output? What do you see instead?
Ad should not take up more than 52dp

What version of the product are you using? On what operating system?
Android 1.5 / AdWhirl 2.6.1

This all worked fine in 2.6.0

Original issue reported on code.google.com by chad...@gmail.com on 14 Jan 2011 at 8:38

GoogleCodeExporter commented 9 years ago
Setting android:layout_height="52dip" on the layout fixes this problem. This 
issue only occurs when using: android:layout_height="wrap_content"

Original comment by chad...@gmail.com on 14 Jan 2011 at 9:28

GoogleCodeExporter commented 9 years ago
this is quite annoying because we can set the layout_height to 52dip, but that 
is bad to hardcode it in there in case new ad sizes come out.  When will this 
be fixed?

Original comment by jaya...@gmail.com on 26 Jan 2011 at 3:41

GoogleCodeExporter commented 9 years ago
this is also a huge problem because with a horizontal layout you cannot center 
the ad properly as it is bigger than 300px if it is a text ad.

<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:myapp="http://schemas.android.com/apk/res/com.jayavon.farmvillehelperfree"
    android:orientation="horizontal"
    android:layout_width="fill_parent" 
    android:layout_height="52dip"
    android:background="#FEFEFE" 
    android:layout_gravity="center_horizontal">
    <com.adwhirl.AdWhirlLayout
        android:id="@+id/adwhirl_layout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/>
</LinearLayout>

Original comment by jaya...@gmail.com on 26 Jan 2011 at 5:03

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 169 has been merged into this issue.

Original comment by wesgood...@google.com on 30 Nov 2011 at 9:09

GoogleCodeExporter commented 9 years ago

Original comment by wesgood...@google.com on 30 Nov 2011 at 9:12