<?xml version="1.0" encoding="UTF-8"?>
<issues format="4" by="lint 3.0.0">
<issue
id="ScrollViewSize"
message="This RelativeLayout should use `android:layout_height="wrap_content"`"
errorLine1=" android:layout_height="match_parent">"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_navigation_view.xml"
line="28"
column="13"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="@dimen/bottom_sheet_elevation""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_hideable.xml"
line="57"
column="13"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="24dp""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_hideable.xml"
line="74"
column="13"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="@dimen/bottom_sheet_elevation""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_persistent.xml"
line="42"
column="13"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="@dimen/bottom_sheet_elevation""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_scroll.xml"
line="62"
column="13"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="8dp""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_with_fab.xml"
line="53"
column="9"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `elevation` is only used in API level 21 and higher (current min is 14)"
errorLine1=" android:elevation="8dp""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_coordinatorlayout_inset.xml"
line="38"
column="9"/>
</issue>
<issue
id="SwitchIntDef"
message="Switch statement on an `int` with known associated constant missing case `BottomSheetBehavior.STATE_DRAGGING`, `BottomSheetBehavior.STATE_SETTLING`"
errorLine1=" switch (newState) {"
errorLine2=" ~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomSheetHideable.java"
line="54"
column="17"/>
</issue>
<issue
id="SwitchIntDef"
message="Switch statement on an `int` with known associated constant missing case `BottomSheetBehavior.STATE_DRAGGING`, `BottomSheetBehavior.STATE_SETTLING`"
errorLine1=" switch (newState) {"
errorLine2=" ~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomSheetWithFab.java"
line="65"
column="17"/>
</issue>
<issue
id="WrongConstant"
message="Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -1)"
errorLine1=" Snackbar.make(mContentView, "Short snackbar message", Snackbar.LENGTH_SHORT).show();"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SnackbarUsage.java"
line="48"
column="63"/>
</issue>
<issue
id="WrongConstant"
message="Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -1)"
errorLine1=" Snackbar.make(mContentView, "Short snackbar message", Snackbar.LENGTH_SHORT)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SnackbarUsage.java"
line="52"
column="63"/>
</issue>
<issue
id="WrongConstant"
message="Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -1)"
errorLine1=" + "makes the Snackbar taller", Snackbar.LENGTH_SHORT).show();"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SnackbarUsage.java"
line="64"
column="48"/>
</issue>
<issue
id="WrongConstant"
message="Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -1)"
errorLine1=" + "makes the Snackbar taller", Snackbar.LENGTH_SHORT)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SnackbarUsage.java"
line="69"
column="48"/>
</issue>
<issue
id="WrongConstant"
message="Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -1)"
errorLine1=" + "makes the Snackbar taller", Snackbar.LENGTH_SHORT)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SnackbarUsage.java"
line="81"
column="48"/>
</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="25"
column="5"/>
</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="25"
column="5"/>
</issue>
<issue
id="UseCompoundDrawables"
message="This tag and its children can be replaced by one `<TextView/>` and a compound drawable"
errorLine1=" <LinearLayout"
errorLine2=" ^">
<location
file="src/main/res/layout/include_appbar_scrollview_with_image.xml"
line="25"
column="5"/>
</issue>
<issue
id="MergeRootFrame"
message="This `<FrameLayout>` can be replaced with a `<merge>` tag"
errorLine1="<FrameLayout"
errorLine2="^">
<location
file="src/main/res/layout/design_bottom_navigation_view.xml"
line="17"
column="1"/>
</issue>
<issue
id="MergeRootFrame"
message="This `<FrameLayout>` can be replaced with a `<merge>` tag"
errorLine1="<FrameLayout"
errorLine2="^">
<location
file="src/main/res/layout/design_fab.xml"
line="18"
column="1"/>
</issue>
<issue
id="Overdraw"
message="Possible overdraw: Root element paints background `?attr/colorPrimary` with a theme that also paints a background (inferred theme is `@style/Theme.DesignDemos`)"
errorLine1=" android:background="?attr/colorPrimary""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/action_layout_custom.xml"
line="22"
column="5"/>
</issue>
<issue
id="Overdraw"
message="Possible overdraw: Root element paints background `#ccc` with a theme that also paints a background (inferred theme is `@style/Theme.DesignDemos`)"
errorLine1=" android:background="#ccc">"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_fragment.xml"
line="22"
column="9"/>
</issue>
<issue
id="UnusedResources"
message="The resource `R.string.navigation_open` appears to be unused"
errorLine1=" <string name="navigation_open">Open</string>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/strings.xml"
line="41"
column="13"/>
</issue>
<issue
id="UnusedResources"
message="The resource `R.string.navigation_close` appears to be unused"
errorLine1=" <string name="navigation_close">Close</string>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/values/strings.xml"
line="42"
column="13"/>
</issue>
<issue
id="IconDensities"
message="Missing the following drawables in `drawable-hdpi`: ic_add.png (found in drawable-xxhdpi)">
<location
file="src/main/res/drawable-hdpi"/>
</issue>
<issue
id="IconDensities"
message="Missing the following drawables in `drawable-mdpi`: ic_add.png (found in drawable-xxhdpi)">
<location
file="src/main/res/drawable-mdpi"/>
</issue>
<issue
id="IconDensities"
message="Missing the following drawables in `drawable-xhdpi`: app_sample_code.png, ic_add.png">
<location
file="src/main/res/drawable-xhdpi"/>
</issue>
<issue
id="IconDensities"
message="Missing the following drawables in `drawable-xxhdpi`: app_sample_code.png (found in drawable-hdpi, drawable-mdpi)">
<location
file="src/main/res/drawable-xxhdpi"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_tabs_viewpager.xml"
line="55"
column="9"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_tabs_viewpager.xml"
line="62"
column="9"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_tabs_viewpager.xml"
line="69"
column="9"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_text_input.xml"
line="47"
column="13"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_text_input.xml"
line="53"
column="13"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_text_input.xml"
line="59"
column="13"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_text_input.xml"
line="135"
column="13"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style="?android:attr/buttonBarButtonStyle"` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" <Button"
errorLine2=" ^">
<location
file="src/main/res/layout/design_text_input.xml"
line="141"
column="13"/>
</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="25"
column="5"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView"
errorLine2=" ^">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="25"
column="5"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView"
errorLine2=" ^">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="33"
column="5"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView"
errorLine2=" ^">
<location
file="src/main/res/layout/design_appbar_toolbar_collapse_with_image.xml"
line="38"
column="13"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView"
errorLine2=" ^">
<location
file="src/main/res/layout/design_appbar_toolbar_collapse_with_image_insets.xml"
line="40"
column="13"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView"
errorLine2=" ^">
<location
file="src/main/res/layout/design_appbar_toolbar_parallax_overlap.xml"
line="39"
column="13"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" <ImageView android:layout_width="72dp""
errorLine2=" ^">
<location
file="src/main/res/layout/include_appbar_scrollview_with_image.xml"
line="30"
column="9"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_with_fab.xml"
line="43"
column="13"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_appbar_toolbar_collapse_pin_with_fab.xml"
line="56"
column="13"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_with_fab.xml"
line="68"
column="9"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true" />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_fab.xml"
line="52"
column="17"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_fab.xml"
line="66"
column="17"/>
</issue>
<issue
id="KeyboardInaccessibleWidget"
message="'clickable' attribute found, please also add 'focusable'"
errorLine1=" android:clickable="true"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_snackbar_with_fab.xml"
line="67"
column="13"/>
</issue>
<issue
id="SetTextI18n"
message="String literal in `setText` can not be translated. Use Android resources instead."
errorLine1=" selectedItem.setText("Entering searching mode");"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="107"
column="54"/>
</issue>
<issue
id="SetTextI18n"
message="String literal in `setText` can not be translated. Use Android resources instead."
errorLine1=" selectedItem.setText("Entering settings!?!");"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="110"
column="54"/>
</issue>
<issue
id="SetTextI18n"
message="String literal in `setText` can not be translated. Use Android resources instead."
errorLine1=" selectedItem.setText("Play some music");"
errorLine2=" ~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="113"
column="54"/>
</issue>
<issue
id="SetTextI18n"
message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
errorLine1=" selectedItem.setText("Selected " + item.getTitle());"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="116"
column="54"/>
</issue>
<issue
id="SetTextI18n"
message="String literal in `setText` can not be translated. Use Android resources instead."
errorLine1=" selectedItem.setText("Selected " + item.getTitle());"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="116"
column="54"/>
</issue>
<issue
id="SetTextI18n"
message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
errorLine1=" selectedItem.setText("Reselected " + item.getTitle());"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="125"
column="46"/>
</issue>
<issue
id="SetTextI18n"
message="String literal in `setText` can not be translated. Use Android resources instead."
errorLine1=" selectedItem.setText("Reselected " + item.getTitle());"
errorLine2=" ~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/BottomNavigationViewUsage.java"
line="125"
column="46"/>
</issue>
<issue
id="SetTextI18n"
message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."
errorLine1=" holder.mTextView.setText(position + ": " + mValues.get(position));"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/com/example/android/support/design/widget/SimpleStringRecyclerViewAdapter.java"
line="78"
column="34"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_alignParentStart="true"` to better support right-to-left layouts"
errorLine1=" android:layout_alignParentLeft="true""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="29"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_marginEnd="8dp"` to better support right-to-left layouts"
errorLine1=" android:layout_marginRight="8dp""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="30"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_alignParentEnd="true"` to better support right-to-left layouts"
errorLine1=" android:layout_alignParentRight="true""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="37"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_toEndOf="@id/custom_snackbar_image_leading"` to better support right-to-left layouts"
errorLine1=" android:layout_toRightOf="@id/custom_snackbar_image_leading""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="45"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_toStartOf="@id/custom_snackbar_image_trailing"` to better support right-to-left layouts"
errorLine1=" android:layout_toLeftOf="@id/custom_snackbar_image_trailing""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="46"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_toEndOf="@id/custom_snackbar_image_leading"` to better support right-to-left layouts"
errorLine1=" android:layout_toRightOf="@id/custom_snackbar_image_leading""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="56"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_toStartOf="@id/custom_snackbar_image_trailing"` to better support right-to-left layouts"
errorLine1=" android:layout_toLeftOf="@id/custom_snackbar_image_trailing""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/custom_snackbar_include.xml"
line="57"
column="9"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_marginEnd="16dp"` to better support right-to-left layouts"
errorLine1=" android:layout_marginRight="16dp""
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/design_appbar_toolbar_collapse_pin_with_fab.xml"
line="55"
column="13"/>
</issue>
<issue
id="RtlHardcoded"
message="Use "`end`" instead of "`right`" to ensure correct behavior in right-to-left locales"
errorLine1=" android:layout_gravity="top|right""
errorLine2=" ~~~~~~~~~">
<location
file="src/main/res/layout/design_bottom_sheet_hideable.xml"
line="72"
column="37"/>
</issue>
<issue
id="RtlHardcoded"
message="Consider adding `android:layout_marginStart="16dp"` to better support right-to-left layouts"
errorLine1=" android:layout_marginLeft="16dp"/>"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/include_appbar_scrollview_with_image.xml"
line="33"
column="20"/>
</issue>
</issues>