diff options
author | Andrew Dolgov <[email protected]> | 2011-11-27 18:17:38 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-27 18:17:38 +0300 |
commit | 420cdfb0839ffd73a50fa92bc6c0c33f85d268d2 (patch) | |
tree | e4ecd18039cfbd4fed034ce43bb0af6ddb1329d8 /res/layout | |
parent | b2519b4e1810eee391576071e90e4b83af9122df (diff) |
initial attempt at admob stuff
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/article_fragment.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml index dde2265d..a24db6c3 100644 --- a/res/layout/article_fragment.xml +++ b/res/layout/article_fragment.xml @@ -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> |