Back to project page ViewInPlay.
The source code is released under:
GNU General Public License
If you think the Android project ViewInPlay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package info.daylemk.viewinplay; /* ww w . j ava2 s . c o m*/ import android.app.Activity; import android.graphics.drawable.ColorDrawable; import android.os.Build; import android.os.Bundle; import com.readystatesoftware.systembartint.SystemBarTintManager; public class SettingsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.activity_settings); this.getActionBar().setBackgroundDrawable( new ColorDrawable(this.getResources().getColor(android.R.color.holo_green_dark))); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { SystemBarTintManager tintManager = new SystemBarTintManager(this); tintManager.setStatusBarTintEnabled(true); int actionBarColor = this.getResources().getColor(android.R.color.holo_green_dark); tintManager.setStatusBarTintColor(actionBarColor); } SettingsFragment fragment = SettingsFragment.getInstance(null); this.getFragmentManager().beginTransaction() .replace(R.id.layout_Settings_main, fragment, SettingsFragment.TAG_OF_FRAGMENT) .commit(); } }