Problems caused by Android layout folders

Source: Internet
Author: User

Android Run to Setcontentview (R.layout.splash);

The following error is always present:

Java.lang.RuntimeException:Unable to start Activity Componentinfo{com.esri.localtiledlayer/com.login.splashscreen} : android.view.InflateException:Binary XML file line #17: Error inflating class Selector

The test model is the Lenovo series of tablets. Android version is 4.4.2

The splash.xml is placed in the Layout-xlarge directory, and the other 10.1-inch 1920*1200 tablet runs no problem.

But a tablet running on a 13.3-inch 2560*1440 is always reporting this error.

After continuous testing, the problem is found in the folder placed on the layout file.

Move the splash.xml to the Layout-land directory, and both of the tablets will run smoothly.

Problems caused by Android layout folders

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.