如何在使用键盘辅助功能时禁用 Primefaces 日历日期选择器

时间:2021-07-20 16:12:10

标签: primefaces accessibility

我需要禁用 Primefaces 日历日期选择器,即在使用选项卡时。换句话说,当日历元素通过键盘访问时,日期选择器不能显示为可访问性。如何实施?

我的 primefaces 日历元素:

tips.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(MainActivity.this, R.style.BottomSheetDialogTheme);
                View bottomSheetView = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tips, (LinearLayout)findViewById(R.id.bottomSheetContainer));
                travel_rule = findViewById(R.id.travel_rule);
                
                // Can I set value to R.id.travel_rule in R.layout.tips???
                if it is can set value how can I do? 

                bottomSheetDialog.setContentView(bottomSheetView);
                bottomSheetDialog.show();
            }
        });

0 个答案:

没有答案