Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old January 22nd, 2012, 09:23 PM   #1 (permalink)
Senior Member
 
Snake X's Avatar
 
Join Date: Aug 2011
Posts: 806
 
Device(s): ZTE warp, Transformer prime
Thanks: 173
Thanked 280 Times in 125 Posts
Send a message via MSN to Snake X
Default display a fullscreen image?

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.

Snake X is offline  
Reply With Quote
Sponsors
Old January 23rd, 2012, 01:55 AM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

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.
jiminaus is offline  
Reply With Quote
Old January 23rd, 2012, 03:42 PM   #3 (permalink)
Senior Member
 
Snake X's Avatar
 
Join Date: Aug 2011
Posts: 806
 
Device(s): ZTE warp, Transformer prime
Thanks: 173
Thanked 280 Times in 125 Posts
Send a message via MSN to Snake X
Default

how do I put it on the main activity? Is this in main.xml?
Snake X is offline  
Reply With Quote
Old January 24th, 2012, 01:31 AM   #4 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

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.
jiminaus is offline  
Reply With Quote
The Following User Says Thank You to jiminaus For This Useful Post:
Snake X (January 24th, 2012)
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:23 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo