App flickers in android task manager -
i noticed weird flickering occurs when app presented in android "task manager".
it seems activity drawn on top of navigation bar short time , pushed back. when other apps opened, app appears in front of others , "flickers" back.
here screencasts:
- https://youtu.be/tfpurqa7aww (without other apps)
- https://youtu.be/xehi4ninwcq (with app opened)
my activity_main.xml
layout file implements simple navigation drawer empty framelayout
replaced current fragment:
<android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="true" android:background="@color/background_material_light" tools:context=".mainactivity"> <framelayout android:layout_width="match_parent" android:layout_height="match_parent"> <framelayout android:id="@+id/fragment_container_main" android:layout_width="match_parent" android:layout_height="match_parent" android:fitssystemwindows="false" /> <android.support.v7.widget.toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorprimary" android:minheight="?attr/actionbarsize" android:theme="@style/widget.apptheme.toolbar" app:popuptheme="@style/themeoverlay.appcompat.light" /> </framelayout> <scriminsetsframelayout android:id="@+id/navigation_drawer_container" android:layout_width="wrap_content" android:layout_height="match_parent" android:fitssystemwindows="true" android:layout_gravity="start" android:background="?android:attr/colorbackground" app:insetforeground="@color/insetsforeground"> <android.support.v7.widget.recyclerview android:id="@+id/navigation_drawer_list" android:layout_width="match_parent" android:layout_height="match_parent" android:choicemode="singlechoice" android:scrollbars="vertical" android:divider="@null" android:dividerheight="0dp" tools:context="navdraweradapter" /> </scriminsetsframelayout> </android.support.v4.widget.drawerlayout>
has ever encountered problem , knows how solve it? :)
ok, i've found issue. due window background being set @android:color/transparent
in application theme.
somehow made whole activity disappear in task manager.
Comments
Post a Comment