2017-01-30 9 views
7

안녕을 도구 모음에 표시되지는 내가 그 내가 사용한 고도 속성 도구 모음의 아래에 그림자를 제거하고 싶었 현재 내 코드는: 높이 = 다음 "0dp"hamburgermenu이

<android.support.design.widget.CoordinatorLayout 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:fitsSystemWindows="true"> 

    <android.support.design.widget.AppBarLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:background="@color/transparent"> 

     <android.support.v7.widget.Toolbar 
      android:id="@+id/toolbar" 
      android:layout_width="match_parent" 
      android:layout_height="?attr/actionBarSize" 

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


    <FrameLayout 
     android:id="@+id/content_frame" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" /> 


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

하고있다 출력은 다음과 같습니다 - 여기

enter image description here

내가

app:elevation="0dp" 
,691을 설정할 수 있도록 내가 아래 그림자를 돼요

to AppBarLayout, 그런 다음 그림자를 제거하지만 HamburgerMenu가 사라집니다. 새로운 출력은 다음과 같습니다 : - enter image description here

아무도 내가 HamburgerMenu 사라지고/숨기지 않고 그림자를 제거 어떻게 말해 줄 수.

답변

8

이 시도 :

활동에서 다음
<android.support.design.widget.AppBarLayout 
      android:id="@+id/appBar" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      app:elevation="0dp"> 
      ... 
</android.support.design.widget.AppBarLayout> 

;

findViewById(R.id.appBar).bringToFront(); 
+1

고맙습니다. :-) – Jayshree