Android Apidemos Sample parsing (app->activity->wallpaper)

Source: Internet
Author: User

Wallpaper Describes how an activity can use the style to wallpaper the system as the background of the current activity.

This is the definition of wallpaperactivity in Androidmanifest.xml:

<activity android:name= ". App. Wallpaperactivity "

Android:label= "@string/activity_wallpaper"

Android:theme= "@style/theme.wallpaper" >

<intent-filter>

< action android:name= "Android.intent.action.MAIN"/>

<category android:name= "Android.intent.category.SAMPLE_CODE"/>

</intent-filter>

</activity>

@style/theme.wallpaper is defined as follows: Inherit the system Android:style/theme.wallpaper and set the foreground color to white (here is the colour of the text)

<!–a theme that has A wallpaper background. Here we explicitly specify

That this theme are to inherit from the system ' wallpaper theme,

Which sets up various attributes correctly. –>

<style name= "Theme.wallpaper" parent= "Android:style/theme.wallpaper" >

<item name= "Android:colorforeground" > #fff </item>

</style>

Related Article

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.