Skip to content

Instantly share code, notes, and snippets.

@sakurabird
Created October 24, 2011 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakurabird/1309053 to your computer and use it in GitHub Desktop.
Save sakurabird/1309053 to your computer and use it in GitHub Desktop.
Untouchable プリファレンスアクティビティ java
public class SettingActivity extends PreferenceActivity {
@Override
publicvoid onCreate( Bundle savedInstanceState ) {
super.onCreate( savedInstanceState );
// XML で Preference を設定
addPreferencesFromResource( R.xml.preference );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment