hold17 / cphindustries

App for CPH Industries to manage weapons made for movies.
MIT License
0 stars 1 forks source link

Feature/settings #71

Closed tlien closed 6 years ago

tlien commented 6 years ago

All preferences are declared in preferences.xml. Notice that this replaces the common "layout" resource. It uses a tag instead of a tag, and all entries are called <.....Preference>. Instead of an "@id+/...", entries get a "key", which is a string set in the @strings resource file. This key is found in defaultSharedPreferences on launch and does not need further initiation. Use keys to get preference, just like any other shared preference. All keys are modified from the settings menu, and no further implementation is needed. Check the SettingsFragment for examples. I made a couple of tests and left a couple of hints for where to put methods.