【发布时间】:2021-01-27 21:02:58
【问题描述】:
通过下面的代码打开上滑底页
VillazBottomSheet villazBottomSheet=new VillazBottomSheet();
villazBottomSheet.setArguments(bundle);
villazBottomSheet.show(getSupportFragmentManager(),"VillazList");//slideup and open sheet
现在我想通过背压向下滑动这个片段
@Override
public void onBackPressed()
{
villazBottomSheet.slidedown()// I want to do this
}
我该怎么做? what i had tried
【问题讨论】:
-
这能回答你的问题吗? Show and Hide Bottom Sheet Programmatically
-
我试过了,不滑底,直接从活动中消失了
标签: android