Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2233] Android: Support Alternate Resource Specifiers

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M03
ComponentsAndroid
Labelsandroid, feature
ReporterDon Thorp
AssigneeBill Dawson
Created2011-04-15T03:14:20.000+0000
Updated2011-04-17T01:58:29.000+0000

Description

The density qualifiers "low" | "medium" | "high" are not sufficient to deal with display sized resources. Add support in android/images to specify other directories to be processed. Note: Special directory naming might be required to force processing unless we limit that folder to only contain processed images. Resources/android/images.

See http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources"> Resource Naming for conventions.

The goal is to allow the developer to easily specify images and have the names mangled correctly across all resource folders for Titanium Android apps.

Comments

  1. Bill Dawson 2011-04-15

    (from [e6fc0024d14bd4a50344302770bd717343f0b13d]) [#2233 state:fixed-in-qa] The android/images folder now supports folders with names like res-xx-xx-xx (etc) where those xx's represent the specifiers available in the Android spec at http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources"> http://developer.android.com/guide/topics/resources/providing-resou.... This is in addition to still supporting simple high/medium/low,which are just for density. https://github.com/appcelerator/titanium_mobile/commit/e6fc0024d14bd4a50344302770bd717343f0b13d"> https://github.com/appcelerator/titanium_mobile/commit/e6fc0024d14b...

  2. Bill Dawson 2011-04-15

    Test is KitchenSink Base UI -> Views -> Image Views -> Android drawable resource.

  3. Thomas Huelbert 2011-04-15

    in that case this bug is closed. Thanks Bill. Titanium SDK version: 1.5.0 (12/10/10 09:14 0c31e15)

  4. Bill Dawson 2011-04-15

    (from [ab21f15926b94e61c716a5aa63819b9d212c3973]) [#2233] Test in Kitchen Sink for resource images in folders starting with 'res-'. https://github.com/appcelerator/titanium_mobile/commit/ab21f15926b94e61c716a5aa63819b9d212c3973"> https://github.com/appcelerator/titanium_mobile/commit/ab21f15926b9...

JSON Source