Search This Blog

22 April 2010

No background color

For a moment we will side-step from our last exercise  to see how we would completely remove the cornsilk background, making our app see-through.

First, in main.xml, remove this line:

Now, in AndroidManifest.xml, change this line:
<activity android:name=".MyActivity">
<activity android:name=".MyActivity" android:theme="@android:style/Theme.Translucent">

Redeploy (mvn clean install)  and the background is gone.  Not too useful for our text-based example, but maybe if we were doing a graphic-based overlay.

No comments:

Post a Comment