From wiki.ginstr.com
Jump to: navigation, search
m
(added autoCapitalize attribute)
 
Line 5: Line 5:
 
'''common.xml''' contains information about ginstr app.
 
'''common.xml''' contains information about ginstr app.
 
==XML Attributes==
 
==XML Attributes==
The following attributes exist and are obligatory:
+
<u>Obligatory attributes:</u>
;<code>min_client_version</code>: minimum version of ginstr launcher client this app works with
+
:;<code>min_client_version</code>: minimum version of ginstr launcher client this app works with
 
:i.e. <code>30150901</code>
 
:i.e. <code>30150901</code>
 
:User should be able to pick the minimum compatible launcher in app-composer and the value should be autoset here
 
:User should be able to pick the minimum compatible launcher in app-composer and the value should be autoset here
;<code>app_version</code>: build version of the ginstr app
+
:;<code>app_version</code>: build version of the ginstr app
 
:Each app starts with <code>2.0</code> as initial value, each time a new ginstr app version is published it should increment by <code>0.1</code>
 
:Each app starts with <code>2.0</code> as initial value, each time a new ginstr app version is published it should increment by <code>0.1</code>
;<code>inSettingsImageSource</code>: about screen extra string information
+
:;<code>inSettingsImageSource</code>: about screen extra string information
 
:i.e. <code>"5 vor 12,&lt;BR/&gt;#19410503, © Stauke,&lt;BR/&gt;fotolia.com"</code>
 
:i.e. <code>"5 vor 12,&lt;BR/&gt;#19410503, © Stauke,&lt;BR/&gt;fotolia.com"</code>
 
:app-composer should have place to add this information
 
:app-composer should have place to add this information
 +
 +
<u>Optional attributes:</u>
 +
:;<code>autoCapitalize</code>: if set to <code>true</code>, auto-capitalization feature is applied to '''all''' <code>[[GnEditText]]</code> or <code>[[GnAutoCompleteTextView]]</code> [[:Category:Widgets|widgets]] whereby the first character entered by the user in to the input box is automatically capitalized.
 +
 
==Example common.xml file==
 
==Example common.xml file==
 
<syntaxhighlight lang="xml" enclose="div">
 
<syntaxhighlight lang="xml" enclose="div">
Line 21: Line 25:
 
   <string name="app_version">2.0</string>
 
   <string name="app_version">2.0</string>
 
   <string name="inSettingsImageSource"></string>
 
   <string name="inSettingsImageSource"></string>
 +
  <string name="autoCapitalize">true</string>
 
</commonResources>
 
</commonResources>
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 14:44, 29 May 2018

common.xml

common.xml contains information about ginstr app.

XML Attributes

Obligatory attributes:

min_client_version
minimum version of ginstr launcher client this app works with
i.e. 30150901
User should be able to pick the minimum compatible launcher in app-composer and the value should be autoset here
app_version
build version of the ginstr app
Each app starts with 2.0 as initial value, each time a new ginstr app version is published it should increment by 0.1
inSettingsImageSource
about screen extra string information
i.e. "5 vor 12,<BR/>#19410503, © Stauke,<BR/>fotolia.com"
app-composer should have place to add this information

Optional attributes:

autoCapitalize
if set to true, auto-capitalization feature is applied to all GnEditText or GnAutoCompleteTextView widgets whereby the first character entered by the user in to the input box is automatically capitalized.

Example common.xml file

<?xml version="1.0" encoding="utf-8"?>
<commonResources>
  <string name="min_client_version"></string>
  <string name="app_version">2.0</string>
  <string name="inSettingsImageSource"></string>
  <string name="autoCapitalize">true</string>
</commonResources>