android.widget.ImageView.setAccessibilityDelegate()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中android.widget.ImageView.setAccessibilityDelegate()方法的一些代码示例,展示了ImageView.setAccessibilityDelegate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.setAccessibilityDelegate()方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:setAccessibilityDelegate

ImageView.setAccessibilityDelegate介绍

暂无

代码示例

代码示例来源:origin: klinker24/Android-Blur-Launcher

@Override
public void setAccessibilityDelegate(AccessibilityDelegate delegate) {
  mAllAppsHandle.setAccessibilityDelegate(delegate);
}

代码示例来源:origin: enricocid/LaunchEnr

@Override
public void setAccessibilityDelegate(AccessibilityDelegate delegate) {
  mAllAppsHandle.setAccessibilityDelegate(delegate);
}

代码示例来源:origin: klinker24/launcher3

@Override
public void setAccessibilityDelegate(AccessibilityDelegate delegate) {
  mAllAppsHandle.setAccessibilityDelegate(delegate);
}

代码示例来源:origin: wasdennnoch/AndroidN-ify

private void initViews() {
  mAppName = findViewById(R.id.app_name_text);
  mHeaderText = findViewById(R.id.header_text);
  mExpandButton = (ImageView) findViewById(R.id.expand_button);
  if (mExpandButton != null) {
    mExpandButton.setAccessibilityDelegate(mExpandDelegate);
  }
  mIcon = findViewById(com.android.internal.R.id.icon);
  mProfileBadge = findViewById(R.id.profile_badge);
  post(new Runnable() {
    @Override
    public void run() {
      Rect r = new Rect();
      r.top = 0;
      r.bottom = (int) (32 * getResources().getDisplayMetrics().density);
      r.left = 0;
      r.right = getWidth();
      TouchDelegate touchDelegate = new TouchDelegate(r, mExpandButton);
      setTouchDelegate(touchDelegate);
    }
  });
  updateTouchListener();
}

相关文章

ImageView类方法