1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| <?xml version="1.0" encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="10dp"
android:background="@drawable/wallpaper2" >
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="j'ai bien remplacé l'id fournit par admob"
ads:adSize="BANNER"
ads:testDevices="TEST_EMULATOR, TEST_DEVICE_ID"
ads:loadAdOnCreate="true"/>
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<!-- this is the "bottom" layer -->
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center">
<SurfaceView
android:id="@+id/camerapreview"
android:layout_width="1dp"
android:layout_height="1dp"
android:layout_centerInParent="true" />
</RelativeLayout>
<!-- this is the "top" layer, hiding the surface preview artifact above -->
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center" >
<ImageButton
android:id="@+id/pressbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@android:color/transparent"
android:contentDescription="@string/pressme"
android:src="@drawable/switch_button" />
</RelativeLayout>
</FrameLayout>
</LinearLayout> |
Partager