{"id":13516706,"url":"https://github.com/saik0/UnifiedPreference","last_synced_at":"2025-03-31T06:31:41.719Z","repository":{"id":5204416,"uuid":"6380055","full_name":"saik0/UnifiedPreference","owner":"saik0","description":"A convinience library for working with all versions of the Android Preference package from API v4 and up","archived":false,"fork":false,"pushed_at":"2012-12-01T20:23:34.000Z","size":501,"stargazers_count":534,"open_issues_count":12,"forks_count":64,"subscribers_count":40,"default_branch":"master","last_synced_at":"2024-11-01T21:35:20.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ethereum/webthree-helpers","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saik0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-25T01:04:06.000Z","updated_at":"2024-09-23T16:13:32.000Z","dependencies_parsed_at":"2022-08-24T12:51:07.346Z","dependency_job_id":null,"html_url":"https://github.com/saik0/UnifiedPreference","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saik0%2FUnifiedPreference","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saik0%2FUnifiedPreference/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saik0%2FUnifiedPreference/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saik0%2FUnifiedPreference/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saik0","download_url":"https://codeload.github.com/saik0/UnifiedPreference/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429459,"owners_count":20775805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:25.058Z","updated_at":"2025-03-31T06:31:40.154Z","avatar_url":"https://github.com/saik0.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"UnifiedPreference\n=================\n\nUnifiedPreference is a library for working with all versions of the \nAndroid Preference package from API v4 and up.\n\nFeatures\n========\n\n * Easy to use\n * Takes care of most of the boilerplate code\n * Tiny, only ~5k!\n * Use a single pane for phones, or headers and fragments for tablets\n * Binds preference values to summaries according to Android Design \n   Guidelines\n * Translated to 50 locales (imported from AOSP internal strings)\n * Uses ActionBarSherlock (optional)\n\nHow to Use\n==========\n\n 1. Ensure your project has one preference xml file for each desired header\n 2. Create or modify a header xml file *using your project's own namespace*\n    for header attributes. Be sure to define preferenceRes for each.\n\n\t```xml\n\t\u003cpreference-headers xmlns:android=\"http://schemas.android.com/apk/res/android\"\n\t\txmlns:unified=\"http://schemas.android.com/apk/res-auto\" \u003e\n\n\t\t\u003cheader\n\t\tunified:fragment=\"your.project.namespace.SampleActivity$SampleFragment\"\n\t\tunified:title=\"@string/pref_header_sample\"\n\t\tunified:preferenceRes=\"@xml/pref_sample\" /\u003e\n\n\t\u003c/preference-headers\u003e\n\t```\n\n 3. Subclass UnifiedPreferenceActivity (or UnifiedSherlockPreferenceActivity\n    for ABS). Call setHeaderRes before super.onCreate and subclass the fragments here.\n\n\t```java\n\tpublic class SampleActivity extends UnifiedPreferenceActivity {\n\n\t\t@Override public void onCreate(Bundle savedInstanceState) {\n\t\t\tsetHeaderRes(R.xml.pref_headers);\n\t\t\tsuper.onCreate(savedInstanceState);\n\t\t}\n\n\t\tpublic static class SampleFragment extends UnifiedPreferenceFragment {}\n\t```\n\nThats it! See the demo project for a more in depth example of how to use the library.\n\nAuthor\n======\n\n * Joel Pedraza - [Google+](http://plus.google.com/111289811888358912498/)\n\nScreenshots\n===========\n\n![Framed artwork](https://raw.github.com/saik0/UnifiedPreference/website/images/framed_all.png \"Framed artwork\")\n\n\nFAQ\n===\n\nWhen is a two-pane layout used?\n\n \u003e When com.android.internal.R.bool.preferences_prefer_dual_pane evaluates to true. In AOSP this is true for sw720dp\n   but this may vary by OEM or third party ROM.\n\nLicense\n=======\n\nCopyright 2012 Joel Pedraza\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaik0%2FUnifiedPreference","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaik0%2FUnifiedPreference","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaik0%2FUnifiedPreference/lists"}