John6
December 20, 2013, 1:45am
1
Sometimes SDL_GetWindowSize() incorrectly returns 1024x600, even though
surfaceChanged() logged the correct dimensions, 1024x580. It happens about 50%
of time, with the same build.
I’m guessing that the 20-pixel height difference is the Kindle’s menu bar at the
bottom. I think SDL used to hide that menu bar, and now it doesn’t. The menu
bar is always there. Is there a way to hide that?
-John
Timodor
December 27, 2013, 5:48am
2
Maybe something to do with your Layout?
My ad’s used to go above the screen, with different a layout before it used to take 50 pixels.
This code makes sure ad’s no longer do that but go above the screen.
Not sure if this is of help.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_gravity="top|center_horizontal"
android:layout_width="wrap_content"
android:layout_height="50dp"
ads:adSize="BANNER"
ads:adUnitId=""
ads:loadAdOnCreate="true"
ads:testDevices="TEST_EMULATOR, TEST_DEVICE_ID" />
John6
December 27, 2013, 3:52pm
3
Not using ads.On 12/27/2013 12:48 AM, Timodor wrote:
Maybe something to do with your Layout?
My ad’s used to go above the screen, with different a layout before it used to
take 50 pixels.
This code makes sure ad’s no longer do that but go above the screen.
Not sure if this is of help.
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads "
android:layout_width="match_parent"
android:layout_height=“match_parent” >
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height=“match_parent” />
android:id="@+id/adView"
android:layout_gravity="top|center_horizontal"
android:layout_width="wrap_content"
android:layout_height="50dp"
ads:adSize=“BANNER"
ads:adUnitId=”"
ads:loadAdOnCreate="true"
ads:testDevices=“TEST_EMULATOR, TEST_DEVICE_ID” />
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org