android - Overdraw on separator -


when buidling gradle lint report reports following:

overdraw: painting regions more once

../../src/main/res/layout/include_divider.xml:4: possible overdraw: root element paints background @color/gray theme paints background (inferred theme @style/apptheme)

1 view xmlns="http://schemas.android.com/apk/res/android"
2 android:layout_width="fill_parent"
3 android:layout_height="1px"
4 android:background="@color/gray" />

i know problem painting on painted part of screen. how can set theme properly? or how can set proper separator rid of issue?

the theme using theme.appcompat.light.

overdraw should reduced as possible there unavoidably overdraw in screens.

in particular case, it's ok draw 1px divider on existing background. lint warnings try best pinpoint possible issues not bulletproof. can safely suppress lint warning particular view.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -