When entering the app, the app's startup activity will have a default theme, so the original interface will be skipped to launch our defined theme.
The way to modify this problem is to set an empty theme for the activity that the app starts. As in the following example:
When the contact start activity is peopleactivity, we set the peopleactivity theme as an empty theme in the manifest file.
<activity android:name= ". Activities. Peopleactivity "
Android:label= "@string/people"
Android:theme= "@style/gnemptytheme"
Android:uioptions= "Splitactionbarwhennarrow"
Android:cleartaskonlaunch= "true"
Android:launchmode= "Singletask"
Android:windowsoftinputmode= "Adjustpan"
android:configchanges= "Orientation"
>
Gnemptytheme is an empty theme, inside what content page does not have, in styles.xml the following definition:
<style name= "Gnemptytheme" >
</style>
To implement a white theme, a black theme, or a transparent theme, in this activity's OnCreate method, use Settheme to set the corresponding theme.
Note that Settheme is to precede super.oncreate (savedinstancestate);
My Android Best practices-solving Flash interface problems