我有一个布局TextInputLayouts元素和我想启用角色的反击。问题是它不起作用,运行应用程序时我看不到计数器。这是我的布局:如您所见,我启用了app:counterEnabled在里面TextInputLayouts。然后,我尝试在代码中设置最大字符。这是代码:shipperTextArea=(TextInputLayout)rootView.findViewById(R.id.shipper_layout);consigneeTextArea=(TextInputLayout)rootView.findViewById(R.id.consignee_layout);shipperTe