8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-5F749184-C804-41FC-BA81-038783BDC967" xml:lang="en"><title>Resources</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
12 <concept id="GUID-5F749184-C804-41FC-BA81-038783BDC967" xml:lang="en"><title>Resources</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 <p>In Symbian mobile application development, resource files are used for |
13 <p>In Symbian mobile application development, resource files are |
14 defining user interface components and visible text. The advantage of using |
14 used for defining user interface components and visible text. The |
15 resource files include:</p> |
15 advantage of using resource files include:</p> |
16 <ul> |
16 <ul> |
17 <li><p>making source code shorter and simpler</p></li> |
17 <li><p>making source code shorter and simpler</p> |
|
18 </li> |
18 <li><p>saving memory, because text is loaded only when needed</p> |
19 <li><p>saving memory, because text is loaded only when needed</p> |
19 </li> |
20 </li> |
20 <li><p>making it easier to implement localization to different language |
21 <li><p>making it easier to implement localization to different |
21 groups</p></li> |
22 language groups</p></li> |
22 </ul> |
23 </ul> |
23 <p>A key example of the use of resource files is found in the implementation |
24 <p>A key example of the use of resource files is found in the implementation |
24 of <xref href="GUID-F3262DF6-39CA-4E96-AD0E-C1FFDE9B0A61.dita">AVKON components</xref>. |
25 of <xref href="GUID-F3262DF6-39CA-4E96-AD0E-C1FFDE9B0A61.dita">AVKON components</xref>. AVKON UI components consist of data structures that are defined |
25 AVKON UI components consist of data structures that are defined in the <ph>resource files</ph> , and then are called from the classes controlling the UI implementation. |
26 in the <ph>resource |
26 When UI component implementation is split into these two approaches, it means |
27 files</ph> , and then are called from the classes controlling the UI implementation. |
27 that resources can be recompiled, for example for new languages, without having |
28 When UI component implementation is split into these two approaches, |
28 to recompile the application code.</p> |
29 it means that resources can be recompiled, for example for new languages, |
|
30 without having to recompile the application code.</p> |
29 <p>For more information on managing resource files, see:</p> |
31 <p>For more information on managing resource files, see:</p> |
30 <ul> |
32 <ul> |
31 <li><p><xref href="GUID-0FB60233-993A-4BF2-9E8C-E03AD092359B.dita">Managing |
33 <li><p><xref href="GUID-0FB60233-993A-4BF2-9E8C-E03AD092359B.dita">Managing resource files</xref></p></li> |
32 resource files</xref></p> |
|
33 </li> |
|
34 <li><p><xref href="GUID-E111C4E8-1342-4E87-ACB4-5B630AF1501C.dita">Internationalization |
34 <li><p><xref href="GUID-E111C4E8-1342-4E87-ACB4-5B630AF1501C.dita">Internationalization |
35 and localization</xref></p> |
35 and localization</xref></p></li> |
36 </li> |
|
37 </ul> |
36 </ul> |
38 </conbody></concept> |
37 </conbody></concept> |