My Android Best practices-solving Flash interface problems

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.