java代碼Toolbar?toolbar?=?findViewById(R.id.tp_tb);
toolbar.setTitle(R.string.tracing_title);
setSupportActionBar(toolbar);styles.xml設(shè)置:<!--?Base?application?theme.?-->
<style?name="AppTheme"?parent="Theme.AppCompat.Light.NoActionBar">
????<!--?Customize?your?theme?here.?-->
????<item?name="colorPrimary">@color/colorPrimary</item>
????<item?name="colorPrimaryDark">@color/colorPrimaryDark</item>
????<item?name="colorAccent">@color/colorAccent</item>
</style>但是我的toolbar就是沒有顯示,是不是因為我設(shè)置的mapView組件遮擋了?
android toolbar不顯示?
慕的地2004268
2018-05-31 10:05:43