[Android Themes] pomenx:
2.10 updated, customizable lockscreen

each lockscreen mtz could has a config.xml file, this file describes the items which are configurable. the file config.xml comes along with manifest.xml under the advance folder.

you can customise the unlock application for now. and more.

config.xml format:

// root

<Config>

// config group

// text: the display name of group which shows on the configuration setting UI.

e.g.

<Group text="Date & Time">

// config items:

//text: display name of an item, which displays on the configuration setting UI

//summary: detailed description of an item

//id: the variable name binds to this config item

//default: default value

a config item will bind its value which would be changed by user on the setting UI to the variable specified by id. the variable can be refered in manifest.xml

// switch

<CheckBox text="" summary="" id="show_date" default="1"/>

// text input

<StringInput text="" summary="" id="date_format" default="k:mm"/>

// text choice

<StringChoice text="" summary="" id="time_format">

//choice items:

<Item value="hh:mm" text="12 hours"/>

<Item value="kk:mm" text="24 hours"/>

</StringChoice>

//number choice

<NumberChoice text="" summary="" id="">

//choice items

<Item value="0" text="Mode 1"/>

<Item value="1" text="Mode 2"/>

</NumberChoice>

//number input

<NumberInput text="" summary="" id="" default=""/>

// select application shortcut in unlocker, id: the intent id in EndPoint, will set the intent according to the selection.

<AppPicker text="" id=""/>

sample:

config.xml

<Config>

<Group text="Date & Time">

<CheckBox text="Display date" id="show_date" default="1"/>

<StringInput text="Date format" summary="" id="date_format" default="yyyy/M/d EEEE"/>

<NumberInput text="Date text size" id="text_size_date" default="14"/>

<NumberInput text="Date vertical offset" id="date_position_y" default="0"/>

</Group>

<Group text="App shortcut">

<AppPicker text="Left unlocker shortcut" id="left_task"/>

<AppPicker text="Right unlocker shortcut" id="right_task"/>

</Group>

</Config>

manifest.xml

<!-- if const is true, the variable will only evaluate once at the initial time, -->

<Var name="show_date" expression="ifelse(isnull(#show_date),1,#show_date)" type="number" const="true"/>

<Var name="text_size_date" expression="ifelse(isnull(#text_size_date),18,#text_size_date)" type="number" const="true"/>

<Var name="date_format" expression="ifelse(isnull(@date_format),'MMMMd日 EEEE', @date_format)" type="string" const="true"/>

<DateTime visibility="#show_date" x="#screen_width/2" y="#screen_height-260+49+#time_panel.actual_h+#unlocker.move_y+#date_position_y" align="center" color="#AAEEEEEE" size="#text_size_date" format="@date_format"/>

<Unlocker name="unlocker" bounceInitSpeed="1000">

<StartPoint x="0" y="#screen_height-275" w="#screen_width/4" h="120">

</StartPoint>

<EndPoint x="0" y="#screen_height-150" w="#screen_width/4" h="300">

<Intent id="left_task" action="android.intent.action.VIEW" type="vnd.android.cursor.dir/calls"/>

</EndPoint>

</Unlocker>

<Unlocker name="unlocker" bounceInitSpeed="1000">

<StartPoint x="#screen_width*3/4" y="#screen_height-275" w="#screen_width/4" h="120">

</StartPoint>

<EndPoint x="#screen_width*3/4" y="#screen_height-150" w="#screen_width/4" h="300">

<Intent id="right_task" action="android.intent.action.MAIN" type="vnd.android-dir/mms-sms" category="android.intent.category.DEFAULT"/>

</EndPoint>

</Unlocker>

// show the app shortcut name

<Text x="#screen_width/2" y="#screen_height-350" align="center" color="#AAFFFFFF" alpha="255-#unlocker.move_y*255" size="24" textExp="'slide unlock to '+ifelse(isnull(@right_task.name)+eqs('',@left_task.name),'Phone',@left_task.name)"/>