[Continuous UPDATE] Android Small problem record

Source: Internet
Author: User

If the article is valuable, please reprint, reprint Please indicate the source http://www.cnblogs.com/rossoneri/p/4040314.html

This article is updated at any time to keep track of the details that are not worth writing a separate blog entry.

The difference between layout_gravity,gravity in 1.xml.

The layout_gravity represents the position of the control itself, and gravity represents the location of the child component.

2. Add ImageView after warning:missing content Description attribute on image

Resolved this warning by setting attribute for android:contentDescription my ImageView

android:contentDescription="@string/desc"

Android Lint Support on ADT throws this warning to ensure that image widgets provide a contentdescription.

This defines text that briefly describes content of the view. Used primarily for accessibility. Since Some views does not have the textual representation this attribute can is used for providing such.

Non-textual widgets like Imageviews and imagebuttons should use the ContentDescription attribute to specify a textual desc Ription of the widget such that screens readers and other accessibility tools can adequately describe the user interface.

Http://stackoverflow.com/questions/8500544/android-lint-contentdescription-warning

3.eclipse compile time refreshing external folders cause long wait time

Select Project->properties
Choose Java Build Path->libraries->android.jar->source attachment,remove off the path in source attachment

[Continuous UPDATE] Android Small problem record

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.