SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

white space when slidingmenu is moving from right to left

Open ParkYongGyu opened this issue 11 years ago • 1 comments

Hi dear android guys,

I have a problem which is showing white space when the sliding menu is moving from right to left like the below attached screenshot.

Currently I feel hard on finding the problem. Is there anyone who knows or can guess what the reason is?

slidingmenubackgroundcolor

ParkYongGyu avatar Nov 05 '14 14:11 ParkYongGyu

I use next method to setup SlidingMenu:

private void setupSlidingMenu() {
SlidingMenu sm = getSlidingMenu(); sm.setShadowWidthRes(R.dimen.shadow_width);// [1] sm.setShadowDrawable(R.drawable.shadow);// [2] sm.setBehindOffset(150); sm.setFadeDegree(0.0f);

    getSlidingMenu().setOnOpenedListener(new SlidingMenu.OnOpenedListener() {
        public void onOpened() {
            getSlidingMenu().invalidate();
        }
    });
}

And this is my shadow.xml :

<gradient
    android:endColor="@color/shadow_start"
    android:centerColor="@color/shadow_center"
    android:startColor="@color/shadow_end" />

So, as far as I can suggest - look at your [1] and [2] parameters shadow_width dimension and "shadow.xml" which might contain nothing there or just with white shape object.

evasyuk avatar Apr 27 '15 17:04 evasyuk