preetam_pict wrote:
> thanks sDroid !
> 
> I tried following code ...
> 
> @Override
>     public void onCreate(Bundle savedInstanceState)
>     {
>        // this should be before calling super.onCreate()!
>       setTheme(android.R.style.Theme_NoTitleBar_Fullscreen);
> 
>       super.onCreate(savedInstanceState);
>       setContentView(R.layout.splashscreen);
>      }
> 
> But i have to do this in every activity right ?

1. You are better served doing this in the manifest via the
android:theme attribute. That way, the title and status bars will be
gone immediately, rather than after onCreate() returns.

2. Yes, you have to do this on every activity for which you want the
full screen. Bear in mind that what you want should be secondary to what
the user wants, and users tend to want to see their battery level,
signal strength, and such. Hence, please be judicious about your use of
full-screen themes.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to