Back to project page openaccessbutton.
The source code is released under:
MIT License
If you think the Android project openaccessbutton 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 org.openaccessbutton.openaccessbutton.preferences; //from w w w .j a va 2s . c o m import android.graphics.Color; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import org.openaccessbutton.openaccessbutton.R; /** * Created by rickards on 10/14/14. */ public class AppPreferencesActivity extends PreferenceActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getFragmentManager().beginTransaction().replace(android.R.id.content, new AppPreferenceFragment()).commit(); //Sets the background color to navy findViewById(android.R.id.list).setBackgroundColor(Color.parseColor("#212F3F")); } // Internal fragment copied from http://stackoverflow.com/questions/6822319 public static class AppPreferenceFragment extends PreferenceFragment { @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } } }