If I set android:layout_height="56dp" , I see the toolbar in the graphic layout. But when I install as below,
<android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@color/purple" android:gravity="center_vertical" android:minHeight="?attr/actionBarSize" app:layout_scrollFlags="scroll|enterAlways" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> </android.support.v7.widget.Toolbar>
Toolbar
not displayed in graphic layout.
The studio says attr/actionBarSize marked as private.
I use
compile 'com.android.support:appcompat-v7:23.0.0' compile 'com.android.support:design:23.0.0'
What could be the problem? How can I fix this! Yes, Studio has been updated.
source share