I installed the AdMob AdView on the ImageSwitcher example from the
Google provided APIs.  Easy enough.

Here's the problem:  Whereas before I was able to change pictures
using either the Directional Pad (DPAD) on the device (or the arrow
keys on a computer keyboard), now the AdView is taking that focus.
How can I give the focus back to the ImageSwitcher?

main.xml

<?xml version="1.0" encoding="utf-8" ?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android" xmlns:app="http://schemas.android.com/apk/res/
com.morgan.alawaiapps.picturesofstuff" android:id="@+id/relative"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
  <com.admob.android.ads.AdView android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content" app:backgroundColor="#000000"
app:textColor="#FFFFFF" app:keywords="Android application"
app:testing="true" android:focusable="false" />

  <ImageSwitcher android:id="@+id/switcher"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true" />
  </LinearLayout>

  <Gallery android:id="@+id/gallery" android:background="#55000000"
android:layout_width="fill_parent" android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:gravity="center_vertical" android:spacing="16dp" />
  </RelativeLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to