Android Remove Shadow On Navigation Drawer -


see here mean

hi, i'm using stock navigation drawer v4 , ask how can delete background shadow when navigation drawer open.

this code of navigationdrawerfragment.java

public void setup(int fragmentid, drawerlayout drawerlayout) {     mfragmentcontainerview = getactivity().findviewbyid(fragmentid);     mdrawerlayout = drawerlayout;      // set custom shadow overlays main content when drawer opens     mdrawerlayout.setdrawershadow(r.drawable.trasparent, gravitycompat.start);     // set drawer's list view items , click listener      actionbar actionbar = getactionbar();     actionbar.setdisplayhomeasupenabled(true);     actionbar.sethomebuttonenabled(true); 

and mainactivity.xml

<android.support.v4.widget.drawerlayout     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent">      <!-- main layout -->     <framelayout         android:id="@+id/main_fragment_container"         android:layout_width="match_parent"         android:layout_height="match_parent" />       <imageview         android:id="@+id/imageview3_left"         android:layout_width="match_parent"         android:layout_height="match_parent"         />      <!-- navigation drawer -->     <listview android:id="@+id/left_drawer"         android:layout_width="240dp"         android:layout_height="match_parent"         android:layout_gravity="start"         android:choicemode="singlechoice"         android:background="#ffffffff"         android:divider="@android:color/transparent"         android:dividerheight="0dp"/>  </android.support.v4.widget.drawerlayout> 

i find solution :d

mdrawerlayout.setscrimcolor(getresources().getcolor(android.r.color.transparent)); 

adding in mainactivity.java


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -