List of usage examples for android.support.v4.app ActionBar setBackgroundDrawable
public abstract void setBackgroundDrawable(Drawable d);
From source file:org.pixmob.droidlink.ui.AccountsActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.accounts);//w w w . ja v a 2s . co m // Customize action bar. final ActionBar actionBar = getSupportActionBar(); actionBar.setCustomView(R.layout.nav); actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(false); actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.nav_background)); }
From source file:org.pixmob.droidlink.ui.EventDetailsActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.event_details); // Customize action bar. final ActionBar actionBar = getSupportActionBar(); actionBar.setCustomView(R.layout.nav); actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(false); actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.nav_background)); notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); }
From source file:org.pixmob.droidlink.ui.EventsActivity.java
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(android.view.Window.FEATURE_PROGRESS); requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(R.layout.events);/*from ww w . j a va2s . c o m*/ // A spinner is displayed when events are synchronizing. setProgressBarIndeterminateVisibility(Boolean.FALSE); setProgressBarVisibility(false); // Customize action bar. final ActionBar actionBar = getSupportActionBar(); actionBar.setCustomView(R.layout.nav); actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(false); actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.nav_background)); syncActionReceiver = new SyncActionReceiver(); prefsEditor = getSharedPreferences(SHARED_PREFERENCES_FILE, MODE_PRIVATE).edit(); notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); // The details fragment is hidden until an event is selected. final Fragment details = getSupportFragmentManager().findFragmentById(R.id.event_details); if (details != null) { final FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); ft.hide(details); ft.commit(); } }