• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps display a fullscreen image?

Snake X

Android Expert
how can I draw an image fullscreen? like if I were to create an app and that's all it did, how would I do that? don't ask why, I have my reasons, I just want to know how to do this. thanks.
 
Put this attribute on the main activity.

Code:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

This will hide the activity title and the status bar making the activity fullscreen.
 
No. Your activities are defined in AndroidManifest.xml.

The easiest, foolproof way to do it is to:
  1. Open AndroidManifest.xml in Eclipse.
  2. Click the Application tab at the bottom of the manifest editor.
  3. In the list of Application Nodes, click your main (only?) activity. The attributes list that will appear next to Application Nodes.
  4. Click Browse next to Theme.
  5. Search for Theme.NoTitleBar.Fullscreen.
  6. Click OK. @android:style/Theme.NoTitleBar.Fullscreen should now appear as that activity's theme.
 
Back
Top Bottom