| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="5" by="lint 3.5.0-beta04" client="gradle" variant="debug" version="3.5.0-beta04"> |
| |
| <issue |
| id="CanvasSize" |
| message="Calling `Canvas.getWidth()` is usually wrong; you should be calling `getWidth()` instead" |
| errorLine1=" final float x = canvas.getWidth() / 2;" |
| errorLine2=" ~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/SpringView.java" |
| line="55" |
| column="25"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" drTxt.setText(String.format("%.4f", (float) mDampingRatio));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/MainActivity.java" |
| line="132" |
| column="31"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" nfTxt.setText(String.format("%.3f", (float) stiffness));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/MainActivity.java" |
| line="154" |
| column="31"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" drTxt.setText(String.format("%.4f", (float) mDampingRatio));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/SpringActivity.java" |
| line="117" |
| column="31"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" nfTxt.setText(String.format("%.3f", (float) stiffness));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/SpringActivity.java" |
| line="139" |
| column="31"/> |
| </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=" <application android:label="@string/activity_sample_code"" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/AndroidManifest.xml" |
| line="19" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="AllowBackup" |
| message="Should explicitly set `android:allowBackup` to `true` or `false` (it's `true` by default, and that can have some security implications for the application's data)" |
| errorLine1=" <application android:label="@string/activity_sample_code"" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/AndroidManifest.xml" |
| line="19" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="ObsoleteLayoutParam" |
| message="Invalid layout param in a `FrameLayout`: `layout_centerHorizontal`" |
| errorLine1=" android:layout_centerHorizontal="true"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="43" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="ObsoleteLayoutParam" |
| message="Invalid layout param in a `FrameLayout`: `layout_centerVertical`" |
| errorLine1=" android:layout_centerVertical="true"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="44" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="UselessParent" |
| message="This `FrameLayout` layout or its `RelativeLayout` parent is possibly useless" |
| errorLine1=" <FrameLayout" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="30" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="IconMissingDensityFolder" |
| message="Missing density variation folders in `src/main/res`: drawable-xhdpi, drawable-xxhdpi"> |
| <location |
| file="src/main/res"/> |
| </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=" <application android:label="@string/activity_sample_code"" |
| errorLine2=" ^"> |
| <location |
| file="src/main/AndroidManifest.xml" |
| line="19" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="ClickableViewAccessibility" |
| message="`onTouch` should call `View#performClick` when a click is detected" |
| errorLine1=" public boolean onTouch(View view, MotionEvent motionEvent) {" |
| errorLine2=" ~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/MainActivity.java" |
| line="75" |
| column="28"/> |
| </issue> |
| |
| <issue |
| id="ClickableViewAccessibility" |
| message="`onTouch` should call `View#performClick` when a click is detected" |
| errorLine1=" public boolean onTouch(View v, MotionEvent motionEvent) {" |
| errorLine2=" ~~~~~~~"> |
| <location |
| file="src/main/java/com/example/android/support/animation/SpringActivity.java" |
| line="63" |
| column="28"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageView" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_chained_springs.xml" |
| line="87" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageView" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_chained_springs.xml" |
| line="93" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageView" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="39" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Damping Ratio:", should use `@string` resource" |
| errorLine1=" android:text="Damping Ratio:"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_chained_springs.xml" |
| line="33" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Stiffness:", should use `@string` resource" |
| errorLine1=" android:text="Stiffness:"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_chained_springs.xml" |
| line="59" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Drag\n Me", should use `@string` resource" |
| errorLine1=" android:text="Drag\n Me"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_chained_springs.xml" |
| line="85" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Damping Ratio:", should use `@string` resource" |
| errorLine1=" android:text="Damping Ratio:"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="63" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Stiffness:", should use `@string` resource" |
| errorLine1=" android:text="Stiffness:"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="89" |
| column="21"/> |
| </issue> |
| |
| </issues> |