/[projects]/android/admob/samples/LunarLander/res/layout/lunar_layout.xml
ViewVC logotype

Annotation of /android/admob/samples/LunarLander/res/layout/lunar_layout.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 337 - (hide annotations) (download) (as text)
Wed Sep 23 12:54:05 2009 UTC (14 years, 9 months ago) by torben
File MIME type: text/xml
File size: 2273 byte(s)
import admob library
1 torben 337 <?xml version="1.0" encoding="utf-8"?>
2     <!--
3     * Copyright (C) 2007 Google Inc.
4     *
5     * Licensed under the Apache License, Version 2.0 (the "License");
6     * you may not use this file except in compliance with the License.
7     * You may obtain a copy of the License at
8     *
9     * http://www.apache.org/licenses/LICENSE-2.0
10     *
11     * Unless required by applicable law or agreed to in writing, software
12     * distributed under the License is distributed on an "AS IS" BASIS,
13     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     * See the License for the specific language governing permissions and
15     * limitations under the License.
16     -->
17    
18     <FrameLayout
19     xmlns:android="http://schemas.android.com/apk/res/android"
20     xmlns:app="http://schemas.android.com/apk/res/com.example.admob.lunarlander"
21     android:layout_width="fill_parent"
22     android:layout_height="fill_parent">
23    
24     <com.example.admob.lunarlander.LunarView
25     android:id="@+id/lunar"
26     android:layout_width="fill_parent"
27     android:layout_height="fill_parent"/>
28    
29     <RelativeLayout
30     android:layout_width="fill_parent"
31     android:layout_height="fill_parent" >
32     <TextView
33     android:id="@+id/text"
34     android:text="@string/lunar_layout_text_text"
35     android:visibility="visible"
36     android:layout_width="wrap_content"
37     android:layout_height="wrap_content"
38     android:layout_centerInParent="true"
39     android:gravity="center_horizontal"
40     android:textColor="#88ffffff"
41     android:textSize="24sp"/>
42    
43     <!-- Place an AdMob ad at the bottom of the screen. -->
44     <!-- It has white text on a black background. -->
45     <!-- The description of the surrounding context is 'Android game'. -->
46     <com.admob.android.ads.AdView
47     android:id="@+id/ad"
48     android:visibility="gone"
49     android:layout_width="fill_parent"
50     android:layout_height="wrap_content"
51     android:layout_alignParentBottom="true"
52     app:backgroundColor="#000000"
53     app:textColor="#FFFFFF"
54     app:keywords="Android game"
55     />
56     <!-- We could append app:testing="true" above to always get the test ad back -->
57    
58     </RelativeLayout>
59    
60     </FrameLayout>

  ViewVC Help
Powered by ViewVC 1.1.20