80,352
社区成员
发帖
与我相关
我的任务
分享
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- 一些属性的配置 -->
</style>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/indigo_500"
android:minHeight="@dimen/abc_action_bar_default_height_material"
app:elevation="5dp"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
/>
mActionBarToolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(mActionBarToolbar);