在横向模式下显示底部对话框时,我的行为有误.问题发生在24. +版本的设计库中.根据下图,底片仅在横向上无法正确显示.我正在使用BottomSheetDialog类,我正在按照本教程:http://www.skholingua.com/blog/bottom-sheet-android,在我发布的应用程序中也会出现问题.
我测试了25. +版本,问题没有解决.
错误在横向24,25 +库中
23. + Library中的相同示例
主要活动
public class MainActivity extends AppCompatActivity {
CoordinatorLayout coordinatorLayout;
private BottomSheetBehavior<View> mBottomSheetBehavior;
private TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
coordinatorLayout = (CoordinatorLayout) findViewById(R.id.main_content);
textView = (TextView) findViewById(R.id.textView);
View bottomSheet = coordinatorLayout.findViewById(R.id.bottom_sheet);
//For your bottom sheet to be displayable, you need to create a BottomSheetBehavior.
//This is created by getting a reference to the container view and calling BottomSheetBehavior.from() on that container.
mBottomSheetBehavior = …Run Code Online (Sandbox Code Playgroud) 您好,我想知道如何在JavaFX HTMLEditor中拦截粘贴事件。