Skip to content

Commit

Permalink
Committing latest changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbuso committed Jan 6, 2014
0 parents commit 033d5f5
Show file tree
Hide file tree
Showing 17 changed files with 1,132 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="lib" path="libs/sdk.jar">
<attributes>
<attribute name="javadoc_location" value="http://code.google.com/apis/ima/docs/sdks/androidjavadoc/"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Demo App V3</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
21 changes: 21 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.ads.interactivemedia.v3.samples.demoapp"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>

<application android:icon="@drawable/icon_v3" android:label="@string/app_name">
<activity android:name=".DroidDemoActivity"
android:configChanges="orientation"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

</application>
</manifest>
8 changes: 8 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright 2013 Google Inc. All Rights Reserved.
You may study, modify, and use this example for any purpose.
Note that this example is provided "as is", WITHOUT WARRANTY
of any kind either expressed or implied.

This repo includes samples for the Android IMA SDK. For more information, see
the documentation at
https://developers.google.com/interactive-media-ads/docs/sdks/android/v3/.
Binary file added libs/sdk.jar
Binary file not shown.
11 changes: 11 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-13
Binary file added res/drawable-hdpi/icon_v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/icon_v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/icon_v3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions res/layout-land/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:baselineAligned="false"
android:orientation="horizontal" >

<LinearLayout
android:id="@+id/leftLayout"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical" >

<FrameLayout android:id="@+id/videoHolder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="top" />

<FrameLayout
android:id="@+id/companionFrame"
android:layout_width="300dp"
android:layout_height="50dp"
android:layout_gravity="bottom" >

<TextView
android:id="@+id/companionPlaceholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/companionPlaceholder"
android:textSize="25dp" />

</FrameLayout>
</LinearLayout>

<LinearLayout
android:id="@+id/rightLayout"
android:layout_width="200dp"
android:layout_height="fill_parent"
android:layout_weight="0.1"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<Button
android:id="@+id/requestAd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_ad" />

<Button
android:id="@+id/language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/language" />

</LinearLayout>

<LinearLayout
android:id="@+id/buttonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<Spinner
android:id="@+id/tagSpinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />

</LinearLayout>

<ScrollView
android:id="@+id/scroll"
android:layout_width="wrap_content"
android:layout_height="fill_parent" >

<TextView
android:id="@+id/log"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</TextView>
</ScrollView>
</LinearLayout>

</LinearLayout>
98 changes: 98 additions & 0 deletions res/layout-large-land/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:baselineAligned="false"
android:orientation="horizontal" >

<LinearLayout
android:id="@+id/leftLayout"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical" >

<FrameLayout android:id="@+id/videoHolder"
android:layout_width="fill_parent"
android:layout_height="180dp"
android:layout_weight="1" />
<FrameLayout
android:id="@+id/companionFrame"
android:layout_width="300dp"
android:layout_height="50dp"
android:layout_gravity="bottom" >

<TextView
android:id="@+id/companionPlaceholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/companionPlaceholder"
android:textSize="25dp" />
</FrameLayout>

<FrameLayout
android:id="@+id/leaderboardCompanionFrame"
android:layout_width="728dp"
android:layout_height="90dp" >

<TextView
android:id="@+id/leaderboardCompanionPlaceholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/leaderboardCompanionPlaceholder"
android:textSize="25dp" />
</FrameLayout>
</LinearLayout>

<LinearLayout
android:id="@+id/rightLayout"
android:layout_width="200dp"
android:layout_height="fill_parent"
android:layout_weight="0.1"
android:orientation="vertical" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<Button
android:id="@+id/requestAd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_ad" />

<Button
android:id="@+id/language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/language" />

</LinearLayout>

<LinearLayout
android:id="@+id/buttonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<Spinner
android:id="@+id/tagSpinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />

</LinearLayout>

<ScrollView
android:id="@+id/scroll"
android:layout_width="wrap_content"
android:layout_height="fill_parent" >

<TextView
android:id="@+id/log"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</TextView>
</ScrollView>
</LinearLayout>

</LinearLayout>
88 changes: 88 additions & 0 deletions res/layout-large/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<FrameLayout android:id="@+id/videoHolder"
android:layout_width="fill_parent"
android:layout_height="180dp"
android:layout_weight="1" />
<LinearLayout
android:id="@+id/spacer"
android:layout_width="fill_parent"
android:layout_height="10dp"
android:orientation="vertical" >
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<Button
android:id="@+id/requestAd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_ad" />

<Button
android:id="@+id/language"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/language" />

</LinearLayout>

<LinearLayout
android:id="@+id/buttonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >

<Spinner
android:id="@+id/tagSpinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />

</LinearLayout>

<FrameLayout
android:id="@+id/companionFrame"
android:layout_width="300dp"
android:layout_height="50dp" >

<TextView
android:id="@+id/companionPlaceholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/companionPlaceholder"
android:textSize="25dp" />
</FrameLayout>

<FrameLayout
android:id="@+id/leaderboardCompanionFrame"
android:layout_width="728dp"
android:layout_height="90dp" >

<TextView
android:id="@+id/leaderboardCompanionPlaceholder"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/leaderboardCompanionPlaceholder"
android:textSize="25dp" />
</FrameLayout>

<ScrollView
android:id="@+id/scroll"
android:layout_width="fill_parent"
android:layout_height="200dp"
android:layout_weight=".1" >

<TextView
android:id="@+id/log"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</TextView>
</ScrollView>

</LinearLayout>
Loading

0 comments on commit 033d5f5

Please sign in to comment.