本文整理匯總了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;
}