本文整理了Java中android.widget.ImageView.setAccessibilityDelegate()
方法的一些代码示例,展示了ImageView.setAccessibilityDelegate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.setAccessibilityDelegate()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!