Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4443] Android: Programatic Access to Preference Titles and Summaries

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 1.7.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterDawson Toth
AssigneeIngo Muschenetz
Created2011-06-16T05:56:34.000+0000
Updated2012-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-589371

Attachments

FileDateSize
settings.png2011-06-21T07:21:07.000+000055347

Comments

  1. Don Thorp 2011-06-16

    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.
  2. Dawson Toth 2011-06-21

    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?

JSON Source