Home | History | Annotate | Download | only in Support4Demos
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <issues format="4" by="lint 3.0.0">
      3 
      4     <issue
      5         id="ScrollViewSize"
      6         message="This LinearLayout should use `android:layout_height=&quot;wrap_content&quot;`"
      7         errorLine1="        android:layout_height=&quot;match_parent&quot;"
      8         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
      9         <location
     10             file="src/main/res/layout/accessibility_roledescription.xml"
     11             line="8"
     12             column="9"/>
     13     </issue>
     14 
     15     <issue
     16         id="ScrollViewSize"
     17         message="This TextView should use `android:layout_height=&quot;wrap_content&quot;`"
     18         errorLine1="                  android:layout_height=&quot;match_parent&quot;"
     19         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
     20         <location
     21             file="src/main/res/layout/sliding_pane_layout.xml"
     22             line="51"
     23             column="19"/>
     24     </issue>
     25 
     26     <issue
     27         id="DefaultLocale"
     28         message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`."
     29         errorLine1="        titleQuery = titleQuery.toLowerCase();"
     30         errorLine2="                                ~~~~~~~~~~~">
     31         <location
     32             file="src/main/java/com/example/android/supportv4/media/model/MusicProvider.java"
     33             line="121"
     34             column="33"/>
     35     </issue>
     36 
     37     <issue
     38         id="DefaultLocale"
     39         message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`."
     40         errorLine1="            if (track.metadata.getString(MediaMetadataCompat.METADATA_KEY_TITLE).toLowerCase()"
     41         errorLine2="                                                                                 ~~~~~~~~~~~">
     42         <location
     43             file="src/main/java/com/example/android/supportv4/media/model/MusicProvider.java"
     44             line="123"
     45             column="82"/>
     46     </issue>
     47 
     48     <issue
     49         id="InconsistentLayout"
     50         message="The id &quot;details&quot; in layout &quot;fragment_layout_support&quot; is missing from the following layout configurations: layout (present in layout-land)"
     51         errorLine1="    &lt;FrameLayout android:id=&quot;@+id/details&quot; android:layout_weight=&quot;1&quot;"
     52         errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~">
     53         <location
     54             file="src/main/res/layout-land/fragment_layout_support.xml"
     55             line="29"
     56             column="18"/>
     57     </issue>
     58 
     59     <issue
     60         id="InlinedApi"
     61         message="Field requires API level 24 (current min is 14): `android.content.pm.PackageManager#MATCH_UNINSTALLED_PACKAGES`"
     62         errorLine1="                    PackageManager.MATCH_UNINSTALLED_PACKAGES"
     63         errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
     64         <location
     65             file="src/main/java/com/example/android/supportv4/app/LoaderCustomSupport.java"
     66             line="232"
     67             column="21"/>
     68     </issue>
     69 
     70     <issue
     71         id="InlinedApi"
     72         message="Field requires API level 24 (current min is 14): `android.content.pm.PackageManager#MATCH_DISABLED_COMPONENTS`"
     73         errorLine1="                            | PackageManager.MATCH_DISABLED_COMPONENTS);"
     74         errorLine2="                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
     75         <location
     76             file="src/main/java/com/example/android/supportv4/app/LoaderCustomSupport.java"
     77             line="233"
     78             column="31"/>
     79     </issue>
     80 
     81     <issue
     82         id="InlinedApi"
     83         message="Field requires API level 21 (current min is 14): `android.R.attr#colorPrimary`"
     84         errorLine1="            android.R.attr.colorPrimary, Color.DKGRAY);"
     85         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
     86         <location
     87             file="src/main/java/com/example/android/supportv4/media/MediaNotificationManager.java"
     88             line="81"
     89             column="13"/>
     90     </issue>
     91 
     92     <issue
     93         id="InlinedApi"
     94         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_STOPPED`"
     95         errorLine1="        mState = PlaybackState.STATE_STOPPED;"
     96         errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
     97         <location
     98             file="src/main/java/com/example/android/supportv4/media/Playback.java"
     99             line="110"
    100             column="18"/>
    101     </issue>
    102 
    103     <issue
    104         id="InlinedApi"
    105         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_STOPPED`"
    106         errorLine1="            mState = PlaybackState.STATE_STOPPED;"
    107         errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    108         <location
    109             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    110             line="160"
    111             column="22"/>
    112     </issue>
    113 
    114     <issue
    115         id="InlinedApi"
    116         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_BUFFERING`"
    117         errorLine1="                mState = PlaybackState.STATE_BUFFERING;"
    118         errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    119         <location
    120             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    121             line="170"
    122             column="26"/>
    123     </issue>
    124 
    125     <issue
    126         id="InlinedApi"
    127         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_PAUSED`"
    128         errorLine1="        mState = PlaybackState.STATE_PAUSED;"
    129         errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~~">
    130         <location
    131             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    132             line="211"
    133             column="18"/>
    134     </issue>
    135 
    136     <issue
    137         id="InlinedApi"
    138         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_BUFFERING`"
    139         errorLine1="                mState = PlaybackState.STATE_BUFFERING;"
    140         errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    141         <location
    142             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    143             line="226"
    144             column="26"/>
    145     </issue>
    146 
    147     <issue
    148         id="InlinedApi"
    149         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_PLAYING`"
    150         errorLine1="                        mState = PlaybackState.STATE_PLAYING;"
    151         errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    152         <location
    153             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    154             line="297"
    155             column="34"/>
    156     </issue>
    157 
    158     <issue
    159         id="InlinedApi"
    160         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_BUFFERING`"
    161         errorLine1="                        mState = PlaybackState.STATE_BUFFERING;"
    162         errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    163         <location
    164             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    165             line="300"
    166             column="34"/>
    167     </issue>
    168 
    169     <issue
    170         id="InlinedApi"
    171         message="Field requires API level 21 (current min is 14): `android.media.session.PlaybackState#STATE_PLAYING`"
    172         errorLine1="            mState = PlaybackState.STATE_PLAYING;"
    173         errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    174         <location
    175             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    176             line="354"
    177             column="22"/>
    178     </issue>
    179 
    180     <issue
    181         id="UnusedAttribute"
    182         message="Attribute `autoMirrored` is only used in API level 19 and higher (current min is 14)"
    183         errorLine1="        android:autoMirrored=&quot;true&quot;>"
    184         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    185         <location
    186             file="src/main/res/drawable/ic_drawer.xml"
    187             line="22"
    188             column="9"/>
    189     </issue>
    190 
    191     <issue
    192         id="WifiManagerLeak"
    193         message="The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices &lt; Android N. Try changing `service` to `service.getApplicationContext()`"
    194         errorLine1="        this.mWifiLock = ((WifiManager) service.getSystemService(Context.WIFI_SERVICE))"
    195         errorLine2="                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    196         <location
    197             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    198             line="102"
    199             column="41"/>
    200     </issue>
    201 
    202     <issue
    203         id="SpUsage"
    204         message="Should use &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
    205         errorLine1="                  android:textSize=&quot;24dip&quot;"
    206         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~">
    207         <location
    208             file="src/main/res/layout/bidiformater_support.xml"
    209             line="28"
    210             column="19"/>
    211     </issue>
    212 
    213     <issue
    214         id="SpUsage"
    215         message="Should use &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
    216         errorLine1="                  android:textSize=&quot;24dip&quot;"
    217         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~">
    218         <location
    219             file="src/main/res/layout/bidiformater_support.xml"
    220             line="35"
    221             column="19"/>
    222     </issue>
    223 
    224     <issue
    225         id="SpUsage"
    226         message="Should use &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
    227         errorLine1="                  android:textSize=&quot;24dip&quot;"
    228         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~">
    229         <location
    230             file="src/main/res/layout/bidiformater_support.xml"
    231             line="46"
    232             column="19"/>
    233     </issue>
    234 
    235     <issue
    236         id="SpUsage"
    237         message="Should use &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
    238         errorLine1="                  android:textSize=&quot;24dip&quot;"
    239         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~">
    240         <location
    241             file="src/main/res/layout/bidiformater_support.xml"
    242             line="53"
    243             column="19"/>
    244     </issue>
    245 
    246     <issue
    247         id="SwitchIntDef"
    248         message="Switch statement on an `int` with known associated constant missing case `PlaybackStateCompat.STATE_FAST_FORWARDING`, `PlaybackStateCompat.STATE_REWINDING`, `PlaybackStateCompat.STATE_SKIPPING_TO_NEXT`, `PlaybackStateCompat.STATE_SKIPPING_TO_PREVIOUS`, `PlaybackStateCompat.STATE_SKIPPING_TO_QUEUE_ITEM`"
    249         errorLine1="        switch (state.getState()) {"
    250         errorLine2="        ~~~~~~">
    251         <location
    252             file="src/main/java/com/example/android/supportv4/media/QueueFragment.java"
    253             line="206"
    254             column="9"/>
    255     </issue>
    256 
    257     <issue
    258         id="PackageManagerGetSignatures"
    259         message="Reading app signatures from getPackageInfo: The app signatures could be exploited if not validated properly; see issue explanation for details."
    260         errorLine1="                    callingPackage, PackageManager.GET_SIGNATURES);"
    261         errorLine2="                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    262         <location
    263             file="src/main/java/com/example/android/supportv4/media/PackageValidator.java"
    264             line="103"
    265             column="37"/>
    266     </issue>
    267 
    268     <issue
    269         id="WrongConstant"
    270         message="Must be one of: Service.START_STICKY_COMPATIBILITY, Service.START_STICKY, Service.START_NOT_STICKY, Service.START_REDELIVER_INTENT"
    271         errorLine1="            return ServiceCompat.START_STICKY;"
    272         errorLine2="                   ~~~~~~~~~~~~~~~~~~~~~~~~~~">
    273         <location
    274             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
    275             line="150"
    276             column="20"/>
    277     </issue>
    278 
    279     <issue
    280         id="WrongConstant"
    281         message="Must be one of: MediaMetadataCompat.METADATA_KEY_TITLE, MediaMetadataCompat.METADATA_KEY_ARTIST, MediaMetadataCompat.METADATA_KEY_ALBUM, MediaMetadataCompat.METADATA_KEY_AUTHOR, MediaMetadataCompat.METADATA_KEY_WRITER, MediaMetadataCompat.METADATA_KEY_COMPOSER, MediaMetadataCompat.METADATA_KEY_COMPILATION, MediaMetadataCompat.METADATA_KEY_DATE, MediaMetadataCompat.METADATA_KEY_GENRE, MediaMetadataCompat.METADATA_KEY_ALBUM_ARTIST, MediaMetadataCompat.METADATA_KEY_ART_URI, MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION, MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI, MediaMetadataCompat.METADATA_KEY_MEDIA_ID, MediaMetadataCompat.METADATA_KEY_MEDIA_URI"
    282         errorLine1="                            MusicProvider.CUSTOM_METADATA_TRACK_SOURCE).hashCode(), e);"
    283         errorLine2="                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    284         <location
    285             file="src/main/java/com/example/android/supportv4/media/MediaBrowserServiceSupport.java"
    286             line="596"
    287             column="29"/>
    288     </issue>
    289 
    290     <issue
    291         id="WrongConstant"
    292         message="Must be one of: MediaMetadataCompat.METADATA_KEY_TITLE, MediaMetadataCompat.METADATA_KEY_ARTIST, MediaMetadataCompat.METADATA_KEY_ALBUM, MediaMetadataCompat.METADATA_KEY_AUTHOR, MediaMetadataCompat.METADATA_KEY_WRITER, MediaMetadataCompat.METADATA_KEY_COMPOSER, MediaMetadataCompat.METADATA_KEY_COMPILATION, MediaMetadataCompat.METADATA_KEY_DATE, MediaMetadataCompat.METADATA_KEY_GENRE, MediaMetadataCompat.METADATA_KEY_ALBUM_ARTIST, MediaMetadataCompat.METADATA_KEY_ART_URI, MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION, MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI, MediaMetadataCompat.METADATA_KEY_MEDIA_ID, MediaMetadataCompat.METADATA_KEY_MEDIA_URI"
    293         errorLine1="                .putString(CUSTOM_METADATA_TRACK_SOURCE, source)"
    294         errorLine2="                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    295         <location
    296             file="src/main/java/com/example/android/supportv4/media/model/MusicProvider.java"
    297             line="282"
    298             column="28"/>
    299     </issue>
    300 
    301     <issue
    302         id="WrongConstant"
    303         message="Must be one of: MediaMetadataCompat.METADATA_KEY_TITLE, MediaMetadataCompat.METADATA_KEY_ARTIST, MediaMetadataCompat.METADATA_KEY_ALBUM, MediaMetadataCompat.METADATA_KEY_AUTHOR, MediaMetadataCompat.METADATA_KEY_WRITER, MediaMetadataCompat.METADATA_KEY_COMPOSER, MediaMetadataCompat.METADATA_KEY_COMPILATION, MediaMetadataCompat.METADATA_KEY_DATE, MediaMetadataCompat.METADATA_KEY_GENRE, MediaMetadataCompat.METADATA_KEY_ALBUM_ARTIST, MediaMetadataCompat.METADATA_KEY_ART_URI, MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI, MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, MediaMetadataCompat.METADATA_KEY_DISPLAY_DESCRIPTION, MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON_URI, MediaMetadataCompat.METADATA_KEY_MEDIA_ID, MediaMetadataCompat.METADATA_KEY_MEDIA_URI"
    304         errorLine1="            String source = track.getString(MusicProvider.CUSTOM_METADATA_TRACK_SOURCE);"
    305         errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    306         <location
    307             file="src/main/java/com/example/android/supportv4/media/Playback.java"
    308             line="165"
    309             column="45"/>
    310     </issue>
    311 
    312     <issue
    313         id="WrongConstant"
    314         message="Must be one of: PlaybackStateCompat.STATE_NONE, PlaybackStateCompat.STATE_STOPPED, PlaybackStateCompat.STATE_PAUSED, PlaybackStateCompat.STATE_PLAYING, PlaybackStateCompat.STATE_FAST_FORWARDING, PlaybackStateCompat.STATE_REWINDING, PlaybackStateCompat.STATE_BUFFERING, PlaybackStateCompat.STATE_ERROR, PlaybackStateCompat.STATE_CONNECTING, PlaybackStateCompat.STATE_SKIPPING_TO_PREVIOUS, PlaybackStateCompat.STATE_SKIPPING_TO_NEXT, PlaybackStateCompat.STATE_SKIPPING_TO_QUEUE_ITEM"
    315         errorLine1="            Log.d(TAG, &quot;Received playback state change to state &quot; + state.getState());"
    316         errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    317         <location
    318             file="src/main/java/com/example/android/supportv4/media/QueueFragment.java"
    319             line="119"
    320             column="24"/>
    321     </issue>
    322 
    323     <issue
    324         id="ExportedContentProvider"
    325         message="Exported content providers can provide access to potentially sensitive data"
    326         errorLine1="        &lt;provider android:name=&quot;.app.LoaderThrottleSupport$SimpleProvider&quot;"
    327         errorLine2="        ^">
    328         <location
    329             file="src/main/AndroidManifest.xml"
    330             line="233"
    331             column="9"/>
    332     </issue>
    333 
    334     <issue
    335         id="ExportedContentProvider"
    336         message="Exported content providers can provide access to potentially sensitive data"
    337         errorLine1="        &lt;provider android:authorities=&quot;com.example.supportv4.content.sharingsupportprovider&quot;"
    338         errorLine2="        ^">
    339         <location
    340             file="src/main/AndroidManifest.xml"
    341             line="378"
    342             column="9"/>
    343     </issue>
    344 
    345     <issue
    346         id="ExportedService"
    347         message="Exported service does not require permission"
    348         errorLine1="        &lt;service android:name=&quot;.media.MediaBrowserServiceSupport&quot;"
    349         errorLine2="        ^">
    350         <location
    351             file="src/main/AndroidManifest.xml"
    352             line="450"
    353             column="9"/>
    354     </issue>
    355 
    356     <issue
    357         id="AllowBackup"
    358         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"
    359         errorLine1="    &lt;application android:label=&quot;@string/activity_sample_code&quot;"
    360         errorLine2="    ^">
    361         <location
    362             file="src/main/AndroidManifest.xml"
    363             line="36"
    364             column="5"/>
    365     </issue>
    366 
    367     <issue
    368         id="AllowBackup"
    369         message="Should explicitly set `android:allowBackup` to `true` or `false` (it&apos;s `true` by default, and that can have some security implications for the application&apos;s data)"
    370         errorLine1="    &lt;application android:label=&quot;@string/activity_sample_code&quot;"
    371         errorLine2="    ^">
    372         <location
    373             file="src/main/AndroidManifest.xml"
    374             line="36"
    375             column="5"/>
    376     </issue>
    377 
    378     <issue
    379         id="ObsoleteSdkInt"
    380         message="This folder configuration (`v11`) is unnecessary; `minSdkVersion` is 14. Merge all the resources in this folder into `values`.">
    381         <location
    382             file="src/main/res/values-v11"/>
    383     </issue>
    384 
    385     <issue
    386         id="StaticFieldLeak"
    387         message="This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask)"
    388         errorLine1="        new AsyncTask&lt;Void, Void, Bitmap[]&gt;() {"
    389         errorLine2="        ^">
    390         <location
    391             file="src/main/java/com/example/android/supportv4/media/AlbumArtCache.java"
    392             line="94"
    393             column="9"/>
    394     </issue>
    395 
    396     <issue
    397         id="StaticFieldLeak"
    398         message="This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask)"
    399         errorLine1="                    mPopulatingTask = new AsyncTask&lt;Void, Void, Void>() {"
    400         errorLine2="                                      ^">
    401         <location
    402             file="src/main/java/com/example/android/supportv4/app/LoaderThrottleSupport.java"
    403             line="436"
    404             column="39"/>
    405     </issue>
    406 
    407     <issue
    408         id="StaticFieldLeak"
    409         message="This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask)"
    410         errorLine1="                    AsyncTask&lt;Void, Void, Void> task = new AsyncTask&lt;Void, Void, Void>() {"
    411         errorLine2="                                                       ^">
    412         <location
    413             file="src/main/java/com/example/android/supportv4/app/LoaderThrottleSupport.java"
    414             line="464"
    415             column="56"/>
    416     </issue>
    417 
    418     <issue
    419         id="StaticFieldLeak"
    420         message="This AsyncTask class should be static or leaks might occur (anonymous android.os.AsyncTask)"
    421         errorLine1="        new AsyncTask&lt;Void, Void, State>() {"
    422         errorLine2="        ^">
    423         <location
    424             file="src/main/java/com/example/android/supportv4/media/model/MusicProvider.java"
    425             line="186"
    426             column="9"/>
    427     </issue>
    428 
    429     <issue
    430         id="UseCompoundDrawables"
    431         message="This tag and its children can be replaced by one `&lt;TextView/>` and a compound drawable"
    432         errorLine1="&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android";"
    433         errorLine2="^">
    434         <location
    435             file="src/main/res/layout/list_item_icon_text.xml"
    436             line="17"
    437             column="1"/>
    438     </issue>
    439 
    440     <issue
    441         id="HandlerLeak"
    442         message="This Handler class should be static or leaks might occur (anonymous android.os.Handler)"
    443         errorLine1="        Handler mHandler = new Handler() {"
    444         errorLine2="                           ^">
    445         <location
    446             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
    447             line="117"
    448             column="28"/>
    449     </issue>
    450 
    451     <issue
    452         id="DisableBaselineAlignment"
    453         message="Set `android:baselineAligned=&quot;false&quot;` on this element for better performance"
    454         errorLine1="    &lt;LinearLayout android:orientation=&quot;horizontal&quot; android:padding=&quot;4dip&quot;"
    455         errorLine2="    ^">
    456         <location
    457             file="src/main/res/layout-land/fragment_arguments_support.xml"
    458             line="35"
    459             column="5"/>
    460     </issue>
    461 
    462     <issue
    463         id="DisableBaselineAlignment"
    464         message="Set `android:baselineAligned=&quot;false&quot;` on this element for better performance"
    465         errorLine1="    &lt;LinearLayout android:orientation=&quot;horizontal&quot; android:padding=&quot;4dip&quot;"
    466         errorLine2="    ^">
    467         <location
    468             file="src/main/res/layout/fragment_arguments_support.xml"
    469             line="35"
    470             column="5"/>
    471     </issue>
    472 
    473     <issue
    474         id="DisableBaselineAlignment"
    475         message="Set `android:baselineAligned=&quot;false&quot;` on this element for better performance"
    476         errorLine1="&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android";"
    477         errorLine2="^">
    478         <location
    479             file="src/main/res/layout-land/fragment_layout_support.xml"
    480             line="21"
    481             column="1"/>
    482     </issue>
    483 
    484     <issue
    485         id="InefficientWeight"
    486         message="Use a `layout_height` of `0dp` instead of `wrap_content` for better performance"
    487         errorLine1="            android:layout_height=&quot;wrap_content&quot;"
    488         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    489         <location
    490             file="src/main/res/layout-land/fragment_arguments_support.xml"
    491             line="27"
    492             column="13"/>
    493     </issue>
    494 
    495     <issue
    496         id="InefficientWeight"
    497         message="Use a `layout_height` of `0dp` instead of `wrap_content` for better performance"
    498         errorLine1="            android:layout_height=&quot;wrap_content&quot;"
    499         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    500         <location
    501             file="src/main/res/layout/fragment_arguments_support.xml"
    502             line="27"
    503             column="13"/>
    504     </issue>
    505 
    506     <issue
    507         id="InefficientWeight"
    508         message="Use a `layout_height` of `0dp` instead of `wrap_content` for better performance"
    509         errorLine1="            android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;wrap_content&quot;"
    510         errorLine2="                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    511         <location
    512             file="src/main/res/layout/send_result.xml"
    513             line="27"
    514             column="49"/>
    515     </issue>
    516 
    517     <issue
    518         id="InefficientWeight"
    519         message="Use a `layout_height` of `0dp` instead of `wrap_content` for better performance"
    520         errorLine1="        android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;wrap_content&quot;"
    521         errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    522         <location
    523             file="src/main/res/layout/simple_job_intent_controller.xml"
    524             line="23"
    525             column="45"/>
    526     </issue>
    527 
    528     <issue
    529         id="InefficientWeight"
    530         message="Use a `layout_height` of `0dp` instead of `wrap_content` for better performance"
    531         errorLine1="        android:layout_width=&quot;match_parent&quot; android:layout_height=&quot;wrap_content&quot;"
    532         errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    533         <location
    534             file="src/main/res/layout/wakeful_alarm_controller.xml"
    535             line="23"
    536             column="45"/>
    537     </issue>
    538 
    539     <issue
    540         id="NestedWeights"
    541         message="Nested weights are bad for performance"
    542         errorLine1="                android:id=&quot;@+id/fragment1&quot; android:layout_weight=&quot;1&quot;"
    543         errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~">
    544         <location
    545             file="src/main/res/layout/fragment_hide_show_support.xml"
    546             line="38"
    547             column="45"/>
    548     </issue>
    549 
    550     <issue
    551         id="NestedWeights"
    552         message="Nested weights are bad for performance"
    553         errorLine1="                android:id=&quot;@+id/fragment2&quot; android:layout_weight=&quot;1&quot;"
    554         errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~">
    555         <location
    556             file="src/main/res/layout/fragment_hide_show_support.xml"
    557             line="52"
    558             column="45"/>
    559     </issue>
    560 
    561     <issue
    562         id="UnusedResources"
    563         message="The resource `R.drawable.red` appears to be unused"
    564         errorLine1="    &lt;drawable name=&quot;red&quot;>#7f00&lt;/drawable>"
    565         errorLine2="              ~~~~~~~~~~">
    566         <location
    567             file="src/main/res/values/colors.xml"
    568             line="18"
    569             column="15"/>
    570     </issue>
    571 
    572     <issue
    573         id="UnusedResources"
    574         message="The resource `R.drawable.blue` appears to be unused"
    575         errorLine1="    &lt;drawable name=&quot;blue&quot;>#770000ff&lt;/drawable>"
    576         errorLine2="              ~~~~~~~~~~~">
    577         <location
    578             file="src/main/res/values/colors.xml"
    579             line="19"
    580             column="15"/>
    581     </issue>
    582 
    583     <issue
    584         id="UnusedResources"
    585         message="The resource `R.drawable.yellow` appears to be unused"
    586         errorLine1="    &lt;drawable name=&quot;yellow&quot;>#77ffff00&lt;/drawable>"
    587         errorLine2="              ~~~~~~~~~~~~~">
    588         <location
    589             file="src/main/res/values/colors.xml"
    590             line="21"
    591             column="15"/>
    592     </issue>
    593 
    594     <issue
    595         id="UnusedResources"
    596         message="The resource `R.drawable.ic_drawer` appears to be unused"
    597         errorLine1="&lt;bitmap xmlns:android=&quot;http://schemas.android.com/apk/res/android";"
    598         errorLine2="^">
    599         <location
    600             file="src/main/res/drawable/ic_drawer.xml"
    601             line="20"
    602             column="1"/>
    603     </issue>
    604 
    605     <issue
    606         id="UnusedResources"
    607         message="The resource `R.drawable.ic_drawer_am` appears to be unused">
    608         <location
    609             file="src/main/res/drawable-hdpi/ic_drawer_am.png"/>
    610         <location
    611             file="src/main/res/drawable-mdpi/ic_drawer_am.png"/>
    612         <location
    613             file="src/main/res/drawable-xhdpi/ic_drawer_am.png"/>
    614     </issue>
    615 
    616     <issue
    617         id="UnusedResources"
    618         message="The resource `R.menu.shortcuts` appears to be unused"
    619         errorLine1="&lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android";>"
    620         errorLine2="^">
    621         <location
    622             file="src/main/res/menu/shortcuts.xml"
    623             line="17"
    624             column="1"/>
    625     </issue>
    626 
    627     <issue
    628         id="UnusedResources"
    629         message="The resource `R.string.accessibility_delegate_button` appears to be unused"
    630         errorLine1="    &lt;string name=&quot;accessibility_delegate_button&quot;>Button&lt;/string>"
    631         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    632         <location
    633             file="src/main/res/values/strings.xml"
    634             line="146"
    635             column="13"/>
    636     </issue>
    637 
    638     <issue
    639         id="UnusedResources"
    640         message="The resource `R.string.sample_transport_controller_activity` appears to be unused"
    641         errorLine1="    &lt;string name=&quot;sample_transport_controller_activity&quot;>Media/TransportController&lt;/string>"
    642         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    643         <location
    644             file="src/main/res/values/strings.xml"
    645             line="189"
    646             column="13"/>
    647     </issue>
    648 
    649     <issue
    650         id="UnusedResources"
    651         message="The resource `R.string.error_cannot_skip` appears to be unused"
    652         errorLine1="    &lt;string name=&quot;error_cannot_skip&quot;>Cannot skip&lt;/string>"
    653         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
    654         <location
    655             file="src/main/res/values/strings.xml"
    656             line="206"
    657             column="13"/>
    658     </issue>
    659 
    660     <issue
    661         id="UnusedResources"
    662         message="The resource `R.string.error_empty_metadata` appears to be unused"
    663         errorLine1="    &lt;string name=&quot;error_empty_metadata&quot;>Empty metadata!&lt;/string>"
    664         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    665         <location
    666             file="src/main/res/values/strings.xml"
    667             line="217"
    668             column="13"/>
    669     </issue>
    670 
    671     <issue
    672         id="UnusedResources"
    673         message="The resource `R.style.ThemeHolo` appears to be unused"
    674         errorLine1="    &lt;style name=&quot;ThemeHolo&quot; parent=&quot;android:Theme&quot;>"
    675         errorLine2="           ~~~~~~~~~~~~~~~~">
    676         <location
    677             file="src/main/res/values/styles.xml"
    678             line="22"
    679             column="12"/>
    680         <location
    681             file="src/main/res/values-v11/styles.xml"
    682             line="19"
    683             column="12"/>
    684     </issue>
    685 
    686     <issue
    687         id="IconDipSize"
    688         message="Suspicious file name `ic_equalizer_white_24dp.png`: The implied 24 `dp` size does not match the actual `dp` size (pixel size 9696 in a `drawable-xxhdpi` folder computes to 3232 `dp`)">
    689         <location
    690             file="src/main/res/drawable-xxhdpi/ic_equalizer_white_24dp.png"/>
    691     </issue>
    692 
    693     <issue
    694         id="IconDipSize"
    695         message="The image `ic_equalizer_white_24dp.png` varies significantly in its density-independent (dip) size across the various density versions: drawable-xhdpi/ic_equalizer_white_24dp.png: 24x24 dp (48x48 px), drawable-xxhdpi/ic_equalizer_white_24dp.png: 32x32 dp (96x96 px)">
    696         <location
    697             file="src/main/res/drawable-xhdpi/ic_equalizer_white_24dp.png"/>
    698         <location
    699             file="src/main/res/drawable-xxhdpi/ic_equalizer_white_24dp.png"/>
    700     </issue>
    701 
    702     <issue
    703         id="IconDensities"
    704         message="Missing the following drawables in `drawable-hdpi`: ic_default_art.png, ic_equalizer_white_24dp.png, ic_star_off.png, ic_star_on.png">
    705         <location
    706             file="src/main/res/drawable-hdpi"/>
    707     </issue>
    708 
    709     <issue
    710         id="IconDensities"
    711         message="Missing the following drawables in `drawable-mdpi`: ic_default_art.png, ic_equalizer_white_24dp.png, ic_notification.png, ic_pause_white_24dp.png, ic_play_arrow_white_24dp.png... (4 more)">
    712         <location
    713             file="src/main/res/drawable-mdpi"/>
    714     </issue>
    715 
    716     <issue
    717         id="IconDensities"
    718         message="Missing the following drawables in `drawable-xhdpi`: alert_dialog_icon.png, app_sample_code.png, ic_default_art.png, ic_notification.png, ic_star_off.png... (1 more)">
    719         <location
    720             file="src/main/res/drawable-xhdpi"/>
    721     </issue>
    722 
    723     <issue
    724         id="IconDensities"
    725         message="Missing the following drawables in `drawable-xxhdpi`: alert_dialog_icon.png, android_robot.png, app_sample_code.png, ic_drawer_am.png, ic_notification.png... (1 more)">
    726         <location
    727             file="src/main/res/drawable-xxhdpi"/>
    728     </issue>
    729 
    730     <issue
    731         id="ButtonStyle"
    732         message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
    733         errorLine1="        &lt;Button android:id=&quot;@+id/goto_first&quot;"
    734         errorLine2="        ^">
    735         <location
    736             file="src/main/res/layout/fragment_pager.xml"
    737             line="36"
    738             column="9"/>
    739     </issue>
    740 
    741     <issue
    742         id="ButtonStyle"
    743         message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
    744         errorLine1="        &lt;Button android:id=&quot;@+id/goto_last&quot;"
    745         errorLine2="        ^">
    746         <location
    747             file="src/main/res/layout/fragment_pager.xml"
    748             line="40"
    749             column="9"/>
    750     </issue>
    751 
    752     <issue
    753         id="ButtonStyle"
    754         message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
    755         errorLine1="        &lt;Button android:id=&quot;@+id/home&quot;"
    756         errorLine2="        ^">
    757         <location
    758             file="src/main/res/layout/fragment_stack.xml"
    759             line="34"
    760             column="9"/>
    761     </issue>
    762 
    763     <issue
    764         id="ButtonStyle"
    765         message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
    766         errorLine1="        &lt;Button android:id=&quot;@+id/new_fragment&quot;"
    767         errorLine2="        ^">
    768         <location
    769             file="src/main/res/layout/fragment_stack.xml"
    770             line="39"
    771             column="9"/>
    772     </issue>
    773 
    774     <issue
    775         id="ButtonStyle"
    776         message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
    777         errorLine1="        &lt;Button android:id=&quot;@+id/delete_fragment&quot;"
    778         errorLine2="        ^">
    779         <location
    780             file="src/main/res/layout/fragment_stack.xml"
    781             line="43"
    782             column="9"/>
    783     </issue>
    784 
    785     <issue
    786         id="GoogleAppIndexingWarning"
    787         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."
    788         errorLine1="    &lt;application android:label=&quot;@string/activity_sample_code&quot;"
    789         errorLine2="    ^">
    790         <location
    791             file="src/main/AndroidManifest.xml"
    792             line="36"
    793             column="5"/>
    794     </issue>
    795 
    796     <issue
    797         id="TextFields"
    798         message="This text field does not specify an `inputType` or a `hint`"
    799         errorLine1="    &lt;EditText android:id=&quot;@+id/saved&quot;"
    800         errorLine2="    ^">
    801         <location
    802             file="src/main/res/layout/labeled_text_edit.xml"
    803             line="28"
    804             column="5"/>
    805     </issue>
    806 
    807     <issue
    808         id="ClickableViewAccessibility"
    809         message="Custom view `CustomView` overrides `onTouchEvent` but not `performClick`"
    810         errorLine1="        public boolean onTouchEvent(MotionEvent event) {"
    811         errorLine2="                       ~~~~~~~~~~~~">
    812         <location
    813             file="src/main/java/com/example/android/supportv4/widget/ExploreByTouchHelperActivity.java"
    814             line="130"
    815             column="24"/>
    816     </issue>
    817 
    818     <issue
    819         id="ContentDescription"
    820         message="Missing `contentDescription` attribute on image"
    821         errorLine1="    &lt;ImageView"
    822         errorLine2="    ^">
    823         <location
    824             file="src/main/res/layout/activity_rounded_bitmap.xml"
    825             line="31"
    826             column="5"/>
    827     </issue>
    828 
    829     <issue
    830         id="ContentDescription"
    831         message="Missing `contentDescription` attribute on image"
    832         errorLine1="    &lt;ImageView"
    833         errorLine2="    ^">
    834         <location
    835             file="src/main/res/layout/drawable_compat.xml"
    836             line="23"
    837             column="5"/>
    838     </issue>
    839 
    840     <issue
    841         id="ContentDescription"
    842         message="Missing `contentDescription` attribute on image"
    843         errorLine1="    &lt;ImageView android:id=&quot;@+id/icon&quot;"
    844         errorLine2="    ^">
    845         <location
    846             file="src/main/res/layout/list_item_icon_text.xml"
    847             line="22"
    848             column="5"/>
    849     </issue>
    850 
    851     <issue
    852         id="KeyboardInaccessibleWidget"
    853         message="&apos;clickable&apos; attribute found, please also add &apos;focusable&apos;"
    854         errorLine1="            android:clickable=&quot;true&quot;/>"
    855         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
    856         <location
    857             file="src/main/res/layout/drawable_compat.xml"
    858             line="27"
    859             column="13"/>
    860     </issue>
    861 
    862     <issue
    863         id="SetTextI18n"
    864         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    865         errorLine1="                mShowText.setText(&quot;Show clicked at &quot; + mShowTime);"
    866         errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    867         <location
    868             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    869             line="79"
    870             column="35"/>
    871     </issue>
    872 
    873     <issue
    874         id="SetTextI18n"
    875         message="String literal in `setText` can not be translated. Use Android resources instead."
    876         errorLine1="                mShowText.setText(&quot;Show clicked at &quot; + mShowTime);"
    877         errorLine2="                                  ~~~~~~~~~~~~~~~~~~">
    878         <location
    879             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    880             line="79"
    881             column="35"/>
    882     </issue>
    883 
    884     <issue
    885         id="SetTextI18n"
    886         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    887         errorLine1="                mHideText.setText(&quot;Hide clicked at &quot; + mHideTime);"
    888         errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    889         <location
    890             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    891             line="84"
    892             column="35"/>
    893     </issue>
    894 
    895     <issue
    896         id="SetTextI18n"
    897         message="String literal in `setText` can not be translated. Use Android resources instead."
    898         errorLine1="                mHideText.setText(&quot;Hide clicked at &quot; + mHideTime);"
    899         errorLine2="                                  ~~~~~~~~~~~~~~~~~~">
    900         <location
    901             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    902             line="84"
    903             column="35"/>
    904     </issue>
    905 
    906     <issue
    907         id="SetTextI18n"
    908         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    909         errorLine1="                mShowTextDone.setText(&quot;Shown at &quot;"
    910         errorLine2="                                      ^">
    911         <location
    912             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    913             line="96"
    914             column="39"/>
    915     </issue>
    916 
    917     <issue
    918         id="SetTextI18n"
    919         message="String literal in `setText` can not be translated. Use Android resources instead."
    920         errorLine1="                mShowTextDone.setText(&quot;Shown at &quot;"
    921         errorLine2="                                      ~~~~~~~~~~~">
    922         <location
    923             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    924             line="96"
    925             column="39"/>
    926     </issue>
    927 
    928     <issue
    929         id="SetTextI18n"
    930         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    931         errorLine1="                mHideTextDone.setText(&quot;Hidden after &quot;"
    932         errorLine2="                                      ^">
    933         <location
    934             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    935             line="99"
    936             column="39"/>
    937     </issue>
    938 
    939     <issue
    940         id="SetTextI18n"
    941         message="String literal in `setText` can not be translated. Use Android resources instead."
    942         errorLine1="                mHideTextDone.setText(&quot;Hidden after &quot;"
    943         errorLine2="                                      ~~~~~~~~~~~~~~~">
    944         <location
    945             file="src/main/java/com/example/android/supportv4/widget/ContentLoadingProgressBarActivity.java"
    946             line="99"
    947             column="39"/>
    948     </issue>
    949 
    950     <issue
    951         id="SetTextI18n"
    952         message="String literal in `setText` can not be translated. Use Android resources instead."
    953         errorLine1="        ((TextView)tv).setText(&quot;Example of displaying an alert dialog with a DialogFragment&quot;);"
    954         errorLine2="                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    955         <location
    956             file="src/main/java/com/example/android/supportv4/app/FragmentAlertDialogSupport.java"
    957             line="45"
    958             column="32"/>
    959     </issue>
    960 
    961     <issue
    962         id="SetTextI18n"
    963         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    964         errorLine1="            ((TextView) tv).setText(&quot;Fragment #&quot; + mNum);"
    965         errorLine2="                                    ~~~~~~~~~~~~~~~~~~~">
    966         <location
    967             file="src/main/java/com/example/android/supportv4/app/FragmentCustomAnimationSupport.java"
    968             line="124"
    969             column="37"/>
    970     </issue>
    971 
    972     <issue
    973         id="SetTextI18n"
    974         message="String literal in `setText` can not be translated. Use Android resources instead."
    975         errorLine1="            ((TextView) tv).setText(&quot;Fragment #&quot; + mNum);"
    976         errorLine2="                                    ~~~~~~~~~~~~">
    977         <location
    978             file="src/main/java/com/example/android/supportv4/app/FragmentCustomAnimationSupport.java"
    979             line="124"
    980             column="37"/>
    981     </issue>
    982 
    983     <issue
    984         id="SetTextI18n"
    985         message="String literal in `setText` can not be translated. Use Android resources instead."
    986         errorLine1="            ((TextView)tv).setText(&quot;This is an instance of MyDialogFragment&quot;);"
    987         errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
    988         <location
    989             file="src/main/java/com/example/android/supportv4/app/FragmentDialogOrActivitySupport.java"
    990             line="77"
    991             column="36"/>
    992     </issue>
    993 
    994     <issue
    995         id="SetTextI18n"
    996         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
    997         errorLine1="        ((TextView)tv).setText(&quot;Example of displaying dialogs with a DialogFragment.  &quot;"
    998         errorLine2="                               ^">
    999         <location
   1000             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1001             line="43"
   1002             column="32"/>
   1003     </issue>
   1004 
   1005     <issue
   1006         id="SetTextI18n"
   1007         message="String literal in `setText` can not be translated. Use Android resources instead."
   1008         errorLine1="        ((TextView)tv).setText(&quot;Example of displaying dialogs with a DialogFragment.  &quot;"
   1009         errorLine2="                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1010         <location
   1011             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1012             line="43"
   1013             column="32"/>
   1014     </issue>
   1015 
   1016     <issue
   1017         id="SetTextI18n"
   1018         message="String literal in `setText` can not be translated. Use Android resources instead."
   1019         errorLine1="                + &quot;Press the show button below to see the first dialog; pressing &quot;"
   1020         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1021         <location
   1022             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1023             line="44"
   1024             column="19"/>
   1025     </issue>
   1026 
   1027     <issue
   1028         id="SetTextI18n"
   1029         message="String literal in `setText` can not be translated. Use Android resources instead."
   1030         errorLine1="                + &quot;successive show buttons will display other dialog styles as a &quot;"
   1031         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1032         <location
   1033             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1034             line="45"
   1035             column="19"/>
   1036     </issue>
   1037 
   1038     <issue
   1039         id="SetTextI18n"
   1040         message="String literal in `setText` can not be translated. Use Android resources instead."
   1041         errorLine1="                + &quot;stack, with dismissing or back going to the previous dialog.&quot;);"
   1042         errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1043         <location
   1044             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1045             line="46"
   1046             column="19"/>
   1047     </issue>
   1048 
   1049     <issue
   1050         id="SetTextI18n"
   1051         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
   1052         errorLine1="            ((TextView)tv).setText(&quot;Dialog #&quot; + mNum + &quot;: using style &quot;"
   1053         errorLine2="                                   ^">
   1054         <location
   1055             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1056             line="153"
   1057             column="36"/>
   1058     </issue>
   1059 
   1060     <issue
   1061         id="SetTextI18n"
   1062         message="String literal in `setText` can not be translated. Use Android resources instead."
   1063         errorLine1="            ((TextView)tv).setText(&quot;Dialog #&quot; + mNum + &quot;: using style &quot;"
   1064         errorLine2="                                   ~~~~~~~~~~">
   1065         <location
   1066             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1067             line="153"
   1068             column="36"/>
   1069     </issue>
   1070 
   1071     <issue
   1072         id="SetTextI18n"
   1073         message="String literal in `setText` can not be translated. Use Android resources instead."
   1074         errorLine1="            ((TextView)tv).setText(&quot;Dialog #&quot; + mNum + &quot;: using style &quot;"
   1075         errorLine2="                                                       ~~~~~~~~~~~~~~~~">
   1076         <location
   1077             file="src/main/java/com/example/android/supportv4/app/FragmentDialogSupport.java"
   1078             line="153"
   1079             column="56"/>
   1080     </issue>
   1081 
   1082     <issue
   1083         id="SetTextI18n"
   1084         message="String literal in `setText` can not be translated. Use Android resources instead."
   1085         errorLine1="                    button.setText(&quot;Hide&quot;);"
   1086         errorLine2="                                   ~~~~~~">
   1087         <location
   1088             file="src/main/java/com/example/android/supportv4/app/FragmentHideShowSupport.java"
   1089             line="67"
   1090             column="36"/>
   1091     </issue>
   1092 
   1093     <issue
   1094         id="SetTextI18n"
   1095         message="String literal in `setText` can not be translated. Use Android resources instead."
   1096         errorLine1="                    button.setText(&quot;Show&quot;);"
   1097         errorLine2="                                   ~~~~~~">
   1098         <location
   1099             file="src/main/java/com/example/android/supportv4/app/FragmentHideShowSupport.java"
   1100             line="70"
   1101             column="36"/>
   1102     </issue>
   1103 
   1104     <issue
   1105         id="SetTextI18n"
   1106         message="String literal in `setText` can not be translated. Use Android resources instead."
   1107         errorLine1="            ((TextView)tv).setText(&quot;The fragment saves and restores this text.&quot;);"
   1108         errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1109         <location
   1110             file="src/main/java/com/example/android/supportv4/app/FragmentHideShowSupport.java"
   1111             line="85"
   1112             column="36"/>
   1113     </issue>
   1114 
   1115     <issue
   1116         id="SetTextI18n"
   1117         message="String literal in `setText` can not be translated. Use Android resources instead."
   1118         errorLine1="            ((TextView)tv).setText(&quot;The TextView saves and restores this text.&quot;);"
   1119         errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1120         <location
   1121             file="src/main/java/com/example/android/supportv4/app/FragmentHideShowSupport.java"
   1122             line="111"
   1123             column="36"/>
   1124     </issue>
   1125 
   1126     <issue
   1127         id="SetTextI18n"
   1128         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
   1129         errorLine1="            ((TextView)tv).setText(&quot;Fragment #&quot; + mNum);"
   1130         errorLine2="                                   ~~~~~~~~~~~~~~~~~~~">
   1131         <location
   1132             file="src/main/java/com/example/android/supportv4/app/FragmentPagerSupport.java"
   1133             line="126"
   1134             column="36"/>
   1135     </issue>
   1136 
   1137     <issue
   1138         id="SetTextI18n"
   1139         message="String literal in `setText` can not be translated. Use Android resources instead."
   1140         errorLine1="            ((TextView)tv).setText(&quot;Fragment #&quot; + mNum);"
   1141         errorLine2="                                   ~~~~~~~~~~~~">
   1142         <location
   1143             file="src/main/java/com/example/android/supportv4/app/FragmentPagerSupport.java"
   1144             line="126"
   1145             column="36"/>
   1146     </issue>
   1147 
   1148     <issue
   1149         id="SetTextI18n"
   1150         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
   1151         errorLine1="            ((TextView) tv).setText(&quot;Fragment #&quot; + mNum);"
   1152         errorLine2="                                    ~~~~~~~~~~~~~~~~~~~">
   1153         <location
   1154             file="src/main/java/com/example/android/supportv4/app/FragmentStackSupport.java"
   1155             line="134"
   1156             column="37"/>
   1157     </issue>
   1158 
   1159     <issue
   1160         id="SetTextI18n"
   1161         message="String literal in `setText` can not be translated. Use Android resources instead."
   1162         errorLine1="            ((TextView) tv).setText(&quot;Fragment #&quot; + mNum);"
   1163         errorLine2="                                    ~~~~~~~~~~~~">
   1164         <location
   1165             file="src/main/java/com/example/android/supportv4/app/FragmentStackSupport.java"
   1166             line="134"
   1167             column="37"/>
   1168     </issue>
   1169 
   1170     <issue
   1171         id="SetTextI18n"
   1172         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
   1173         errorLine1="            ((TextView)tv).setText(&quot;Fragment #&quot; + mNum);"
   1174         errorLine2="                                   ~~~~~~~~~~~~~~~~~~~">
   1175         <location
   1176             file="src/main/java/com/example/android/supportv4/app/FragmentStatePagerSupport.java"
   1177             line="127"
   1178             column="36"/>
   1179     </issue>
   1180 
   1181     <issue
   1182         id="SetTextI18n"
   1183         message="String literal in `setText` can not be translated. Use Android resources instead."
   1184         errorLine1="            ((TextView)tv).setText(&quot;Fragment #&quot; + mNum);"
   1185         errorLine2="                                   ~~~~~~~~~~~~">
   1186         <location
   1187             file="src/main/java/com/example/android/supportv4/app/FragmentStatePagerSupport.java"
   1188             line="127"
   1189             column="36"/>
   1190     </issue>
   1191 
   1192     <issue
   1193         id="SetTextI18n"
   1194         message="String literal in `setText` can not be translated. Use Android resources instead."
   1195         errorLine1="        callbackData.setText(&quot;No broadcast received yet&quot;);"
   1196         errorLine2="                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1197         <location
   1198             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
   1199             line="60"
   1200             column="30"/>
   1201     </issue>
   1202 
   1203     <issue
   1204         id="SetTextI18n"
   1205         message="String literal in `setText` can not be translated. Use Android resources instead."
   1206         errorLine1="                    callbackData.setText(&quot;STARTED&quot;);"
   1207         errorLine2="                                         ~~~~~~~~~">
   1208         <location
   1209             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
   1210             line="74"
   1211             column="42"/>
   1212     </issue>
   1213 
   1214     <issue
   1215         id="SetTextI18n"
   1216         message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
   1217         errorLine1="                    callbackData.setText(&quot;Got update: &quot; + intent.getIntExtra(&quot;value&quot;, 0));"
   1218         errorLine2="                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1219         <location
   1220             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
   1221             line="76"
   1222             column="42"/>
   1223     </issue>
   1224 
   1225     <issue
   1226         id="SetTextI18n"
   1227         message="String literal in `setText` can not be translated. Use Android resources instead."
   1228         errorLine1="                    callbackData.setText(&quot;Got update: &quot; + intent.getIntExtra(&quot;value&quot;, 0));"
   1229         errorLine2="                                         ~~~~~~~~~~~~~~">
   1230         <location
   1231             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
   1232             line="76"
   1233             column="42"/>
   1234     </issue>
   1235 
   1236     <issue
   1237         id="SetTextI18n"
   1238         message="String literal in `setText` can not be translated. Use Android resources instead."
   1239         errorLine1="                    callbackData.setText(&quot;STOPPED&quot;);"
   1240         errorLine2="                                         ~~~~~~~~~">
   1241         <location
   1242             file="src/main/java/com/example/android/supportv4/content/LocalServiceBroadcaster.java"
   1243             line="78"
   1244             column="42"/>
   1245     </issue>
   1246 
   1247     <issue
   1248         id="HardcodedText"
   1249         message="Hardcoded string &quot;Demonstration of hiding and showing fragments.&quot;, should use `@string` resource"
   1250         errorLine1="        android:text=&quot;Demonstration of hiding and showing fragments.&quot; />"
   1251         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1252         <location
   1253             file="src/main/res/layout/fragment_hide_show_support.xml"
   1254             line="27"
   1255             column="9"/>
   1256     </issue>
   1257 
   1258     <issue
   1259         id="HardcodedText"
   1260         message="Hardcoded string &quot;Hide&quot;, should use `@string` resource"
   1261         errorLine1="            android:text=&quot;Hide&quot; />"
   1262         errorLine2="            ~~~~~~~~~~~~~~~~~~~">
   1263         <location
   1264             file="src/main/res/layout/fragment_hide_show_support.xml"
   1265             line="35"
   1266             column="13"/>
   1267     </issue>
   1268 
   1269     <issue
   1270         id="HardcodedText"
   1271         message="Hardcoded string &quot;Hide&quot;, should use `@string` resource"
   1272         errorLine1="            android:text=&quot;Hide&quot; />"
   1273         errorLine2="            ~~~~~~~~~~~~~~~~~~~">
   1274         <location
   1275             file="src/main/res/layout/fragment_hide_show_support.xml"
   1276             line="49"
   1277             column="13"/>
   1278     </issue>
   1279 
   1280     <issue
   1281         id="HardcodedText"
   1282         message="Hardcoded string &quot;No items.&quot;, should use `@string` resource"
   1283         errorLine1="            android:text=&quot;No items.&quot;/>"
   1284         errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~">
   1285         <location
   1286             file="src/main/res/layout/fragment_pager_list.xml"
   1287             line="49"
   1288             column="13"/>
   1289     </issue>
   1290 
   1291     <issue
   1292         id="HardcodedText"
   1293         message="Hardcoded string &quot;Invisible item&quot;, should use `@string` resource"
   1294         errorLine1="        android:title=&quot;Invisible item&quot; />"
   1295         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1296         <location
   1297             file="src/main/res/menu/shortcuts.xml"
   1298             line="22"
   1299             column="9"/>
   1300     </issue>
   1301 
   1302     <issue
   1303         id="HardcodedText"
   1304         message="Hardcoded string &quot;Alvin&quot;, should use `@string` resource"
   1305         errorLine1="        android:title=&quot;Alvin&quot; />"
   1306         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~">
   1307         <location
   1308             file="src/main/res/menu/shortcuts.xml"
   1309             line="26"
   1310             column="9"/>
   1311     </issue>
   1312 
   1313     <issue
   1314         id="HardcodedText"
   1315         message="Hardcoded string &quot;Bart&quot;, should use `@string` resource"
   1316         errorLine1="        android:title=&quot;Bart&quot; />"
   1317         errorLine2="        ~~~~~~~~~~~~~~~~~~~~">
   1318         <location
   1319             file="src/main/res/menu/shortcuts.xml"
   1320             line="30"
   1321             column="9"/>
   1322     </issue>
   1323 
   1324     <issue
   1325         id="HardcodedText"
   1326         message="Hardcoded string &quot;Chris&quot;, should use `@string` resource"
   1327         errorLine1="        android:title=&quot;Chris&quot; />"
   1328         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~">
   1329         <location
   1330             file="src/main/res/menu/shortcuts.xml"
   1331             line="34"
   1332             column="9"/>
   1333     </issue>
   1334 
   1335     <issue
   1336         id="HardcodedText"
   1337         message="Hardcoded string &quot;David&quot;, should use `@string` resource"
   1338         errorLine1="        android:title=&quot;David&quot; />"
   1339         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~">
   1340         <location
   1341             file="src/main/res/menu/shortcuts.xml"
   1342             line="38"
   1343             column="9"/>
   1344     </issue>
   1345 
   1346     <issue
   1347         id="HardcodedText"
   1348         message="Hardcoded string &quot;Eric&quot;, should use `@string` resource"
   1349         errorLine1="        android:title=&quot;Eric&quot; />"
   1350         errorLine2="        ~~~~~~~~~~~~~~~~~~~~">
   1351         <location
   1352             file="src/main/res/menu/shortcuts.xml"
   1353             line="42"
   1354             column="9"/>
   1355     </issue>
   1356 
   1357     <issue
   1358         id="HardcodedText"
   1359         message="Hardcoded string &quot;Frank&quot;, should use `@string` resource"
   1360         errorLine1="        android:title=&quot;Frank&quot; />"
   1361         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~">
   1362         <location
   1363             file="src/main/res/menu/shortcuts.xml"
   1364             line="46"
   1365             column="9"/>
   1366     </issue>
   1367 
   1368     <issue
   1369         id="HardcodedText"
   1370         message="Hardcoded string &quot;Gary&quot;, should use `@string` resource"
   1371         errorLine1="        android:title=&quot;Gary&quot; />"
   1372         errorLine2="        ~~~~~~~~~~~~~~~~~~~~">
   1373         <location
   1374             file="src/main/res/menu/shortcuts.xml"
   1375             line="50"
   1376             column="9"/>
   1377     </issue>
   1378 
   1379     <issue
   1380         id="HardcodedText"
   1381         message="Hardcoded string &quot;Henry&quot;, should use `@string` resource"
   1382         errorLine1="        android:title=&quot;Henry&quot; />"
   1383         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~">
   1384         <location
   1385             file="src/main/res/menu/shortcuts.xml"
   1386             line="54"
   1387             column="9"/>
   1388     </issue>
   1389 
   1390     <issue
   1391         id="HardcodedText"
   1392         message="Hardcoded string &quot;Exclamation&quot;, should use `@string` resource"
   1393         errorLine1="        android:title=&quot;Exclamation&quot; />"
   1394         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
   1395         <location
   1396             file="src/main/res/menu/shortcuts.xml"
   1397             line="58"
   1398             column="9"/>
   1399     </issue>
   1400 
   1401     <issue
   1402         id="HardcodedText"
   1403         message="Hardcoded string &quot;Refresh&quot;, should use `@string` resource"
   1404         errorLine1="        android:title=&quot;Refresh&quot; />"
   1405         errorLine2="        ~~~~~~~~~~~~~~~~~~~~~~~">
   1406         <location
   1407             file="src/main/res/menu/swipe_refresh_menu.xml"
   1408             line="21"
   1409             column="9"/>
   1410     </issue>
   1411 
   1412     <issue
   1413         id="RtlHardcoded"
   1414         message="Use &quot;`start`&quot; instead of &quot;`left`&quot; to ensure correct behavior in right-to-left locales"
   1415         errorLine1="              android:layout_gravity=&quot;left&quot;/>"
   1416         errorLine2="                                      ~~~~">
   1417         <location
   1418             file="src/main/res/layout/sliding_pane_layout.xml"
   1419             line="33"
   1420             column="39"/>
   1421     </issue>
   1422 
   1423 </issues>
   1424