有没有办法宣布android talkback中文本字段的可绘制性

有没有办法宣布android talkback中文本字段的可绘制性,android,accessibility,talkback,Android,Accessibility,Talkback,使用具有可绘制权限的自定义EditText <com.sample.AmountEditText android:id="@+id/search_amount" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentRig

使用具有可绘制权限的自定义EditText

<com.sample.AmountEditText
                android:id="@+id/search_amount"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:layout_marginTop="@dimen/dim_16dp"
                android:hint="@string/amount"
                android:maxLength="12"
                android:inputType="numberDecimal" />

AmountEditText.java

@Override
    @SuppressLint("ClickableViewAccessibility")
    public boolean onTouchEvent(MotionEvent event) {
        // TODO Auto-generated method stub
        setCursorVisibility(this.getRootView(), true);
        if(!this.isEnabled()){
            return false;
        }
        if (event.getAction() == MotionEvent.ACTION_UP && mDrawableRight != null) {
            mRectBounds = mDrawableRight.getBounds();
            final int x = (int) event.getX();
            final int y = (int) event.getY();
            if (x >= (this.getRight() - mRectBounds.width()) && x <= (this.getRight() - this.getPaddingRight()) && y >= this.getPaddingTop() && y <= (this.getHeight() - this.getPaddingBottom())) {
                {
                    this.setText("");
                }
                if (this != null) {
                    this.setSelection(this.getText().length());
                }
            }
        }
        return super.onTouchEvent(event);
    }
@覆盖
@SuppressLint(“ClickableViewAccessibility”)
公共布尔onTouchEvent(运动事件){
//TODO自动生成的方法存根
setCursorVisibility(this.getRootView(),true);
如果(!this.isEnabled()){
返回false;
}
if(event.getAction()==MotionEvent.ACTION\u UP&&mDrawableRight!=null){
mRectBounds=mDrawableRight.getBounds();
final int x=(int)event.getX();
final int y=(int)event.getY();

如果(x>=(this.getRight()-mRectBounds.width())和&x=this.getPaddingTop()&&y您可以
.setContentDescription(字符串)
.mDrawableRight
字段上的
方法。

这不提供问题的答案。若要评论或要求作者澄清,请在其帖子下方留下评论。-为什么您认为它不提供答案?问题是如何设置可访问性的内容描述。实际上您不能。没有答案提款权的uch方法