本文整理了Java中androidx.appcompat.app.AppCompatDelegate.setCompatVectorFromResourcesEnabled()
方法的一些代码示例,展示了AppCompatDelegate.setCompatVectorFromResourcesEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AppCompatDelegate.setCompatVectorFromResourcesEnabled()
方法的具体详情如下:
包路径:androidx.appcompat.app.AppCompatDelegate
类名称:AppCompatDelegate
方法名:setCompatVectorFromResourcesEnabled
暂无
代码示例来源:origin: aurelhubert/ahbottomnavigation
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
代码示例来源:origin: guardianproject/haven
@Override
public void onCreate() {
super.onCreate();
SugarContext.init(getApplicationContext());
SchemaGenerator schemaGenerator = new SchemaGenerator(this);
schemaGenerator.createDatabase(new SugarDb(this).getDB());
mPrefs = new PreferenceManager(this);
ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
.setProgressiveJpegConfig(new SimpleProgressiveJpegConfig())
.setResizeAndRotateEnabledForNetwork(true)
.setDownsampleEnabled(true)
.build();
Fresco.initialize(this,config);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
if (mPrefs.getRemoteAccessActive())
startServer();
}
代码示例来源:origin: jruesga/rview
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
}
代码示例来源:origin: Mauker1/MaterialSearchView
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
TypedArray typedArray = mContext.obtainStyledAttributes(attributeSet, R.styleable.MaterialSearchView, defStyleAttribute, 0);
代码示例来源:origin: bkhezry/MapDrawingTools
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
mMap = findViewById(R.id.mapLite);
mMap.onCreate(savedInstanceState);
mMap.getMapAsync(this);
setUpButtons();
}
代码示例来源:origin: morogoku/MTweaks-KernelAdiutorMOD
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
// Don't initialize analytics with debug build
if (!BuildConfig.DEBUG) {
Fabric.with(this, new Crashlytics());
}
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
Utils.DARK_THEME = Themes.isDarkTheme(this);
Themes.Theme theme = Themes.getTheme(this, Utils.DARK_THEME);
if (Utils.DARK_THEME) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
} else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
}
setTheme(theme.getStyle());
super.onCreate(savedInstanceState);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && setStatusBarColor()) {
Window window = getWindow();
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.setStatusBarColor(statusBarColor());
}
}
代码示例来源:origin: bkhezry/MapDrawingTools
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
drawingOption = getIntent().getParcelableExtra(MAP_OPTION);
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
setUpFABs();
setUpCalculateLayout();
initRequestingLocation();
if (drawingOption.getRequestGPSEnabling())
requestActivatingGPS();
}
代码示例来源:origin: jruesga/rview
protected final void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
mFragmentManager = getSupportFragmentManager();
内容来源于网络,如有侵权,请联系作者删除!