Xml文件  |  101行  |  3.84 KB

<?xml version="1.0" encoding="UTF-8"?>
<issues format="4" by="lint 3.0.0">

    <issue
        id="AppCompatResource"
        message="Should use `android:showAsAction` when not using the appcompat library"
        errorLine1="          app:showAsAction=&quot;always&quot;/>"
        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="25"
            column="11"/>
    </issue>

    <issue
        id="AppCompatResource"
        message="Should use `android:showAsAction` when not using the appcompat library"
        errorLine1="          app:showAsAction=&quot;always&quot;/>"
        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="31"
            column="11"/>
    </issue>

    <issue
        id="AppCompatResource"
        message="Should use `android:showAsAction` when not using the appcompat library"
        errorLine1="          app:showAsAction=&quot;always&quot;/>"
        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="37"
            column="11"/>
    </issue>

    <issue
        id="AllowBackup"
        message="On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute `android:fullBackupContent` to specify an `@xml` resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html"
        errorLine1="    &lt;application"
        errorLine2="    ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="20"
            column="5"/>
    </issue>

    <issue
        id="GoogleAppIndexingWarning"
        message="App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details."
        errorLine1="    &lt;application"
        errorLine2="    ^">
        <location
            file="src/main/AndroidManifest.xml"
            line="20"
            column="5"/>
    </issue>

    <issue
        id="AlwaysShowAction"
        message="Prefer &quot;`ifRoom`&quot; instead of &quot;`always`&quot;"
        errorLine1="          app:showAsAction=&quot;always&quot;/>"
        errorLine2="          ~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="25"
            column="11"/>
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="31"
            column="11"/>
        <location
            file="src/main/res/menu/menu_demo.xml"
            line="37"
            column="11"/>
    </issue>

    <issue
        id="SetTextI18n"
        message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
        errorLine1="                holder.view.setText(&quot;Nope, couldn&apos;t position cursor to: &quot; + position);"
        errorLine2="                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/java/com/example/android/support/content/demos/ContentPagerDemoActivity.java"
            line="183"
            column="37"/>
    </issue>

    <issue
        id="SetTextI18n"
        message="String literal in `setText` can not be translated. Use Android resources instead."
        errorLine1="                holder.view.setText(&quot;Nope, couldn&apos;t position cursor to: &quot; + position);"
        errorLine2="                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="src/main/java/com/example/android/support/content/demos/ContentPagerDemoActivity.java"
            line="183"
            column="37"/>
    </issue>

</issues>