Java Code Examples for android.support.v7.app.AppCompatDelegate.create()

The following are Jave code examples for showing how to use create() of the android.support.v7.app.AppCompatDelegate class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: microMathematics   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 6 votes
private AppCompatDelegate getDelegate()
{
    if (mDelegate == null)
    {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 2
Project: AC2RD   File: TelephoneCallLogger.java   Source Code and License Vote up 5 votes
@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));
  }
 
Example 3
Project: tangobot   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 4
Project: EasyTodo   File: SettingsActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (delegate == null) {
        delegate = AppCompatDelegate.create(this, null);
    }
    return delegate;
}
 
Example 5
Project: homeDash   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 6
Project: Excuser   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 7
Project: GitJourney   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 8
Project: syncplayer   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 9
Project: LucaHome-AndroidApplication   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (appCompatDelegate == null) {
        appCompatDelegate = AppCompatDelegate.create(this, null);
    }
    return appCompatDelegate;
}
 
Example 10
Project: WaJeun   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 11
Project: Kandroid   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 12
Project: MovieGuide   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 13
Project: leoapp-sources   File: NotificationPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 14
Project: cda-app   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 15
Project: Calendouer   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 16
Project: SampleAppArch   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
  if (mDelegate == null) {
    mDelegate = AppCompatDelegate.create(this, null);
  }
  return mDelegate;
}
 
Example 17
Project: Search-em-All   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 18
Project: leoapp-sources   File: PreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}
 
Example 19
Project: Pocket-Plays-for-Twitch   File: TestPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
	if (mDelegate == null) {
		mDelegate = AppCompatDelegate.create(this, null);
	}
	return mDelegate;
}
 
Example 20
Project: eyeRS   File: AppCompatPreferenceActivity.java   Source Code and License Vote up 4 votes
private AppCompatDelegate getDelegate() {
    if (mDelegate == null) {
        mDelegate = AppCompatDelegate.create(this, null);
    }
    return mDelegate;
}