Using android pull to refresh library draws layout on top of navigation drawer -


i'm using pull refresh library, know deprecated, unfortunately client i'm working reluctant change i'm unable so.

i'm using library @chrisbanes: https://github.com/chrisbanes/actionbar-pulltorefresh

in home activity layout have navigation drawer

<android.support.v4.widget.drawerlayout     android:id="@+id/drawer_layout"     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/white" > 

the problem have no matter do, layout gets added view hierarchy pull refresh functionality gets drawn on top of else, includes navigation drawer, whenever have drawer open , refresh going on, have progress bar , pull refresh layout drawing on top of navigation drawer layout.

i have been going though code , noticed layout gets added this:

// create layoutparams adding view panel windowmanager.layoutparams wlp = new windowmanager.layoutparams(width, height,     windowmanager.layoutparams.type_application_panel,     windowmanager.layoutparams.flag_not_focusable | windowmanager.layoutparams.flag_not_touchable,     pixelformat.translucent); wlp.x = 0; wlp.y = mrect.top; wlp.gravity = gravity.top;  // workaround issue #182 headerview.settag(wlp);  mactivity.getwindowmanager().addview(headerview, wlp); 

i haven't got complete understanding of how window manager works, i'm not sure if layout should added view or if there property i'm missing allow me modify z-index of layout, , unfortunately i'm unable see layout on hierarchy viewer.

i appreciate on matter have been struggling couple of days without being able solve it.

thanks in advance.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -