Organizational Research By

Surprising Reserch Topic

toolbar disappears after unlocking the screen using -'android,android-layout,android-design-library'


toolbar disappears after unlocking the screen  using -'android,android-layout,android-design-library'

I have layout, see below. When I unlock the phone after some time of locking, sometimes(!) Toolbar disappears. Doesn't matter what exactly fragment added to the layout.

There is no mechanics for show/hide Toolbar in app at all.
Doesn't matter what exactly fragment added to the layout.

Is there any ideas what is it?

<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <variable
            name="view"
            type="com.example.ChecklistsListActivity" />
    </data>

    <android.support.design.widget.CoordinatorLayout

        android:id="@+id/mainContent"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <android.support.design.widget.AppBarLayout
            android:id="@+id/appbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            >

            <android.support.v7.widget.Toolbar
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:background="?attr/colorPrimary"
                app:theme="@style/MyActionBarStyle"
                android:visibility="visible" />

        </android.support.design.widget.AppBarLayout>

        <FrameLayout
            android:id="@+id/nest"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom"
            android:layout_marginBottom="@dimen/fab_margin_bottom"
            android:layout_marginRight="@dimen/fab_margin_right"
            android:onClick="@{view.fabOnClick}"
            android:src="@drawable/ic_add_white_24dp"
            android:visibility="invisible" />

    </android.support.design.widget.CoordinatorLayout>
</layout>

    
asked Sep 7, 2015 by rajesh
0 votes
4 views



Related Hot Questions



Government Jobs Opening


...