android - Seeing message in logs: "app:theme is deprecated"? -
ever since upgrading latest appcompat library, i'm seeing message in logs viewutils.
app:theme deprecated. please move using android:theme instead.
i'm using parent="theme.appcompat.light.noactionbar" theme parent.
replace app:theme android:theme can have situation when not using app:theme. check layout, toolbar layout. in case, didn't have app:theme in layout files. take @ situation:
<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:styled="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar_actionbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="?attr/colorprimary" android:minheight="?attr/actionbarsize" styled:popuptheme="@style/toolbardarkpopup" styled:theme="@style/actionbarthemeoverlay" /> and i've changed layout to:
<android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/toolbar_actionbar" android:layout_width="match_parent" android:layout_height="?attr/actionbarsize" android:background="?attr/colorprimary" android:minheight="?attr/actionbarsize" android:theme="@style/actionbarthemeoverlay" /> now don't see warning.
take here: https://chris.banes.me/2015/04/22/support-libraries-v22-1-0/
great explanation chris banes
Comments
Post a Comment