0

I want to make 2 Sliding Drawers with Relative Layout (so the first sliding drawer is in front of the second sliding drawer). The first sliding drawer's content has a button to Open Second Sliding Drawer.

When i open the first sliding drawer only cover 1/3 of the screen. The second sliding drawer cover all of the screen.

Now i want to:

When i click the button on the content of first sliding drawer, it opens the second sliding drawer, like i said before, AND THEN i want the handler of the first sliding drawer GONE. It becomes VISIBLE again after the second sliding drawer is closed. So basically, i can't close the first sliding drawer, if the second sliding drawer is still opened.

I already tried to setVisibility(View.GONE) and setVisibility(View.INVISIBLE) but it doesn't work.

Sorry i can't post picture in this forum so it maybe a bit confusing. Thanks for answering ;)

4

1 回答 1

1

当您触摸第二个抽屉的按钮时,您是否尝试过关闭第一个抽屉?

slidingDrawer1.close();
于 2012-05-08T12:55:06.033 回答