Hey folks i managed to implement Admob into a normal linear layout so far. now i added a additional scrollview and the adbanner disappeared. i don ´t know what i can do against it.
following code is from the .xml where i added the scrollview: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@+id/linearLayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="match_parent"> <ScrollView android:id="@+id/scrollView1" android:layout_height="wrap_content" android:layout_width="match_parent"> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> [whole bunch of layout elements whoch shouldn´t manipulate the adbanner] </LinearLayout> </ScrollView> </LinearLayout> In my linear layout ,where the adbanner still works, the whole adbanner position was done in the main activitiy.java file // Lookup R.layout.main LinearLayout layout = (LinearLayout)findViewById(R.id.linearLayout); // Create the adView // Please replace MY_BANNER_UNIT_ID with your AdMob Publisher ID String pubID = "xxxxxxxxxxxxxxxxxx"; AdView adView = new AdView(this, AdSize.BANNER, pubID); // Add the adView to it layout.addView(adView); // Initiate a generic request to load it with an ad AdRequest request = new AdRequest(); request.setTesting(true); adView.loadAd(request); can anybody tell me what to change or what code to add when implementing an admob banner into a scrollview? cheers -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

