initial attempt at admob stuff

This commit is contained in:
Andrew Dolgov 2011-11-27 18:17:38 +03:00
parent b2519b4e18
commit 420cdfb083
5 changed files with 22 additions and 3 deletions

View File

@ -6,5 +6,6 @@
<classpathentry kind="lib" path="lib/gson-1.7.1.jar"/>
<classpathentry kind="lib" path="lib/jsoup-1.6.1.jar"/>
<classpathentry kind="lib" path="libs/android-support-v4.jar"/>
<classpathentry kind="lib" path="C:/Users/fox/android-sdk-windows/extras/google/admob_ads_sdk/GoogleAdMobAdsSdk-4.3.1.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -7,6 +7,7 @@
<!-- <supports-screens android:smallScreens="false" android:normalScreens="false" /> -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".LoginActivity"
@ -23,6 +24,9 @@
<activity android:name=".PreferencesActivity"
android:label="@string/preferences">
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
</manifest>

View File

@ -1,2 +1,2 @@
# Project target.
target=android-10
target=android-13

View File

@ -8,4 +8,4 @@
# project structure.
# Project target.
target=android-11
target=android-13

View File

@ -2,6 +2,8 @@
<LinearLayout android:id="@+id/article_fragment" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal">
<ImageView android:layout_weight="0" android:background="?articleDivider" android:layout_width="wrap_content" android:paddingLeft="4dip" android:layout_height="match_parent"></ImageView>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/linerLayout2"
android:layout_width="match_parent"
android:layout_weight="1"
@ -19,6 +21,18 @@
</LinearLayout>
<ImageView android:background="?feedlistDivider" android:paddingTop="2dip" android:layout_weight="0" android:layout_height="wrap_content" android:layout_width="match_parent"></ImageView>
<WebView android:layout_weight="0" android:layout_width="match_parent" android:padding="3dip" android:layout_height="match_parent" android:id="@+id/content"></WebView>
<WebView android:layout_weight="1" android:layout_width="match_parent" android:padding="3dip" android:layout_height="match_parent" android:id="@+id/content"></WebView>
<!-- Ad Placeholder -->
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_weight="0"
android:gravity="center"
android:background="@android:color/transparent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adUnitId="a14ed24fe8c671c"
ads:adSize="BANNER"
ads:loadAdOnCreate="true" />
</LinearLayout>
</LinearLayout>