小编Fer*_*uss的帖子

底板景观问题

在横向模式下显示底部对话框时,我的行为有误.问题发生在24. +版本的设计库中.根据下图,底片仅在横向上无法正确显示.我正在使用BottomSheetDialog类,我正在按照本教程:http://www.skholingua.com/blog/bottom-sheet-android,在我发布的应用程序中也会出现问题.

我测试了25. +版本,问题没有解决.

错误在横向24,25 +库中

在景观中出错

23. + Library中的相同示例

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)

android android-support-library android-design-library

19
推荐指数
5
解决办法
6481
查看次数

JavaFx HTMLEditor上的Intercept粘贴事件

您好,我想知道如何在JavaFX HTMLEditor中拦截粘贴事件

java javafx

4
推荐指数
1
解决办法
1556
查看次数