A summary of the mistakes of the Android music learning idiom

Source: Internet
Author: User

1. If you use the ListView control on a non-black background, Android may default to the background of this list control suddenly black when scrolling the ListView. This may lead to the black background of the program and the theme of the main program is neither coordinated

I started with the androidmanifest.xml.

Android:theme= "@android: Style/theme.notitlebar"

After careful investigation of the meaning is: background theme without the title bar style, default if not set, display black background

To solve this problem:

then replace it with android:theme= "@android: Style/theme.translucent.notitlebar

For more information, see http://blog.csdn.net/zhupengqq/article/details/51472682

2.

The following error occurred: This is not an instance class

Java.lang.RuntimeException:Unable to instantiate activity ComponentInfo

There are two scenarios in which activity cannot be instantiated:

1. The activity has not been registered in the manifest.xml manifest, or the class name of the package name or activity has been modified after the activity has been created, and the configuration manifest has not been modified, resulting in the inability to instantiate

2. Create a new package yourself, while configuring, use the default package

For more information, see: http://blog.csdn.net/zhupengqq/article/details/51591964

A summary of the mistakes of the Android music learning idiom

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.