Android-openx-widget is a project mainly written in Java, it's free.
Custom View component to load ads from OpenX zones
This code implements a widget for Android applications to display ads with the help of OpenX Ad Server. It was successfully tested with OpenX Community Edition (a.k.a. OpenX Source) version 2.8.8-rc6 (the most recent at the moment).
It basically wraps a WebView inside ViewGroup and provides an interface to set ad delivery parameters and to load ads.
To use this widget just include it in your layout.xml file as any other View component. For example:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ox="http://denivip.ru/schemas/android/openx/0.1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ru.denivip.android.widgets.OpenxAdView
android:id="@+id/adview"
android:layout_width="88px"
android:layout_height="31px"
ox:delivery_url="@string/openxDeliveryUrl"
ox:zone_id="3" />
<ListView android:layout_width="match_parent"
android:id="@+id/contactList"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
The widget supports the following parameters, which can be set both in layout file (as values or links to resources) or using accessors provided by class.