Toolbar 그림자 제거 / 네이게이션바 배경색 변경
작성일 20-06-21 09:46
페이지 정보
작성자sbLAB 조회 3,064회 댓글 0건본문
Toolbar 그림자 제거
app_bar_main.xml
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp"
android:theme="@style/AppTheme.AppBarOverlay">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
네이게이션바 배경색 변경
activity_main.xm
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer"
app:itemTextColor="@color/MilkWhite"
app:itemIconTint="@color/MilkWhite"
app:itemHorizontalPadding="15dp"
android:background="@drawable/side_nav_bar"
/>
댓글목록
등록된 댓글이 없습니다.