Back to project page android-sholi.
The source code is released under:
GNU General Public License
If you think the Android project android-sholi listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * ShoLi, a simple tool to produce short (shopping) lists. *// www . j a v a2 s . c o m * Copyright (C) 2014 David Soulayrol * * ShoLi is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ShoLi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package name.soulayrol.rhaa.sholi; import android.app.Activity; import android.os.Bundle; public class SettingsActivity extends Activity { public static final String KEY_CHECKING_FLING_LEFT_ACTION = "pref_checking_fling_to_left_action"; public static final String KEY_CHECKING_FLING_RIGHT_ACTION = "pref_checking_fling_to_right_action"; public static final String KEY_CONFIRM_REMOVE_CHECKED_ACTION = "pref_checking_confirm_remove_checked_action"; public static final String KEY_CONFIRM_REMOVE_ALL_ACTION = "pref_checking_confirm_remove_all_action"; public static final String KEY_LIST_ITEM_SIZE = "pref_items_size"; public static final String KEY_IMPORT_MERGE_POLICY = "pref_import_merge_policy"; public static boolean isListPreference(String key) { return KEY_CHECKING_FLING_LEFT_ACTION.equals(key) || KEY_CHECKING_FLING_RIGHT_ACTION.equals(key) || KEY_LIST_ITEM_SIZE.equals(key) || KEY_IMPORT_MERGE_POLICY.equals(key); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } }