本文整理了Java中androidx.appcompat.app.AppCompatDelegate.createView()
方法的一些代码示例,展示了AppCompatDelegate.createView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppCompatDelegate.createView()
方法的具体详情如下:
包路径:androidx.appcompat.app.AppCompatDelegate
类名称:AppCompatDelegate
方法名:createView
暂无
代码示例来源:origin: mikepenz/Android-Iconics
@Override
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
View result = appCompatDelegate.createView(parent, name, context, attrs);
return mIconicsFactory.onViewCreated(result, context, attrs);
}
代码示例来源:origin: mikepenz/Android-Iconics
@Override
public View onCreateView(String name, Context context, AttributeSet attrs) {
View result = appCompatDelegate.createView(null, name, context, attrs);
return mIconicsFactory.onViewCreated(result, context, attrs);
}
}
代码示例来源:origin: mikepenz/Android-Iconics
@Override
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
View result = appCompatDelegate.createView(parent, name, context, attrs);
return mIconicsFactory.onViewCreated(result, context, attrs);
}
}
代码示例来源:origin: luhaoaimama1/zone-sdk
@Override
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
//替换 view;
if (name.equals("TextView")) {
Button button = new Button(context, attrs);
return button;
}
//兼容 问题 tint等 系统已经替换好的view
AppCompatDelegate delegate = getDelegate();
View view = delegate.createView(parent, name, context, attrs);
//统一更改字体;
if (view != null && (view instanceof TextView)) {
((TextView) view).setTypeface(null);
}
return null;
}
});
代码示例来源:origin: MCMrARM/revolution-irc
@Override
public View onCreateView(View parent, String name, Context context, AttributeSet attrs) {
View view = mActivity.onCreateView(name, context, attrs);
if (view != null)
return view;
return mActivity.getDelegate().createView(parent, name, context, attrs);
}
内容来源于网络,如有侵权,请联系作者删除!