本文整理汇总了Java中android.support.v7.app.AppCompatDelegate.create方法的典型用法代码示例。如果您正苦于以下问题:Java AppCompatDelegate.create方法的具体用法?Java AppCompatDelegate.create怎么用?Java AppCompatDelegate.create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v7.app.AppCompatDelegate
的用法示例。
在下文中一共展示了AppCompatDelegate.create方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate()
{
if (mDelegate == null)
{
mDelegate = AppCompatDelegate.create(this, null);
}
return mDelegate;
}
示例2: onCreate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState)
{
localizerManager.setPreferencesLocale(getApplicationContext());
themeManager.setPreferencesTheme(getApplicationContext(), this);
delegate = AppCompatDelegate.create(this, this);
delegate.installViewFactory();
super.onCreate(savedInstanceState);
delegate.onCreate(savedInstanceState);
delegate.setContentView(R.layout.logs);
Toolbar toolbar = (Toolbar)findViewById(R.id.log_toolbar);
delegate.setSupportActionBar(toolbar);
delegate.getSupportActionBar().setLogo(R.drawable.ic_menu_archive);
delegate.setTitle(getApplicationContext().getString(R.string.main_toolbar_log));
delegate.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
delegate.getSupportActionBar().setDisplayShowHomeEnabled(true);
orderBy = TELEPHONE_LOG.DEFAULT_SORT_ORDER;
logByPriority = 1;
cursor = databaseManager.queryLogByPriority(getApplicationContext(), cursor, orderBy, logByPriority);
setCursorAdapter();
listView.setEmptyView(findViewById(R.id.logs_empty));
}
示例3: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate() {
if (mDelegate == null) {
mDelegate = AppCompatDelegate.create(this, null);
}
return mDelegate;
}
示例4: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate() {
if (delegate == null) {
delegate = AppCompatDelegate.create(this, null);
}
return delegate;
}
示例5: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate() {
if (appCompatDelegate == null) {
appCompatDelegate = AppCompatDelegate.create(this, null);
}
return appCompatDelegate;
}
示例6: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate() {
if (mDelegate == null) {
mDelegate = AppCompatDelegate.create(this, null);
}
return mDelegate;
}
示例7: getDelegate
import android.support.v7.app.AppCompatDelegate; //导入方法依赖的package包/类
private AppCompatDelegate getDelegate() {
if (mDelegate == null) {
mDelegate = AppCompatDelegate.create(this, null);
}
return mDelegate;
}