[TIMOB-4443] Android: Programatic Access to Preference Titles and Summaries
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 1.7.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Dawson Toth |
Assignee | Ingo Muschenetz |
Created | 2011-06-16T05:56:34.000+0000 |
Updated | 2012-10-07T23:21:14.000+0000 |
Description
Feature
Expose programatic access to preferences' titles and summaries on Android so that developers can customize what is shown by Ti.UI.Android.openPreferences().Possible Usage
Titanium.App.Properties.setTitle('propKey', 'This Is A Title!');
Titanium.App.Properties.setSummary('propKey', 'And this is a summary...');
Documentation
http://developer.android.com/reference/android/preference/Preference.html#setSummary(java.lang.CharSequence)Associated Helpdesk Ticket
http://appc.me/c/APP-589371Attachments
File | Date | Size |
---|---|---|
settings.png | 2011-06-21T07:21:07.000+0000 | 55347 |
Why does this need to be programatic? Is it not definable in the preferences.xml? Please attach a full example of the titanium code to be run as a test. Also a screen shot of what currently happens and the graphic marked up to show the changes.
Attached is "settings.png" to demonstrate why this needs to be programmatic. The screenshot arrow labeled "A" demonstrates all that we can do with Titanium right now. You can only put in static text, at compile time, and that will be displayed to the user. Now look at the screenshot arrow labeled "B". These settings aren't editable, but they represent information outside of the Settings app that can change. Picture this as information about the database, cache size, version, latency, etc. The "Possible Usage" in the original description (above) should be all that is necessary; is there something more I can include?