我试图让BottomSheetDialogFragment 出现在BottomNavigationView 的顶部和BottomNavigationView 下方,即具有较低的高度。BottomSheetDialogFragment 将具有一个类似 YouTube 的视频播放器,带有一个 RecyclerView 并可以展开和折叠底部表。我已经研究了几个建议,但没有解决。包括 Stackoverflow。我按照下面的代码尝试了 Show () 方法的两种变体 - 但都没有奏效。我可以做展开、折叠等动作,不用担心。问题是将BottomSheet放在BottomNavigationView后面和Activity的RecyclerView上面。
公共类 myController 扩展了 CommonActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//inflate the layout of the activity
setContentView(R.layout.controller_layout);
//other activity codes
//progressBar = findViewById(R.id.progressBar);
//contains initialization codes for views and recyclerview
//initViews();
}
OPTION 01: It's the CALL that everyone is pointing to BottomSheetDilogFragment, except BottomSheet is over BottomNavigationView
INITIALIZED when clicking on a item (thumbnail) of a RecyclerView in the layout of …Run Code Online (Sandbox Code Playgroud)