[JAMin, XDA Neo, S200 General] blastman:
A little help??

hey guys,

I've written the code below but I need some help with getting it right. Basically, as you can see I have a basic front screen that when tapped changes to the main apps and monitors screen.

The problem is that even though I have the icons on the apps screen where I'd like them, I can't get the ontap and onhold attributes to work correctly. If I tap the SMS icon for instance the view changes, instead of opening the SMS inbox like it should. Strangely if I tap at the bottom of the screen (directly below the SMS icon) the inbox opens ok.

I'm guessing that the height and width attributes are messed up and are causing this strange behaviour but I have no idea why!!!

Since I'm very new at this, could someone with more experience than me have a look through my code and see where I've gone wrong before I continue filling the rest of the apps screen??

Thanking you all!

<?xml version=”1.0″?>

<Window xmlns=”http://www.chi-tai.info/BatteryStatus” imagesrc=”Blastman” version=”1″ >

<!– DAY Screen –>

<Row name=”Day_Screen” >

<!– Front Page –>

<View height=”260″ >

<!– day –>

<Item class=”date”>

<label text=”dddddd” bold=”0″ fontsize=”20″ top=”-80″ width=”180″ align=”center” />

</Item>

<!– clock –>

<Item class=”clock” >

<label text=”HH':'mm” align=”left” left=”-160″ fontsize=”80″ width=”180″ top=”-20″ fontfamily=”Segoe UI” />

</Item>

<!– date –>

<Item class=”date” ontap=”toggleview” >

<label text=”dd MMMM yyyy” bold=”0″ fontsize=”18″ top=”50″ width=”180″ align=”left” left=”-155″ />

</Item>

<!– SMS Count with spacer line –>

<Item class=”registry_tracker” >

<label text=”______________________” suppress0=”1″ top=”70″ width=”180″ align=”left” left=”-199″ >

<registry keyvalue=”HKCU\System\State\Messages\sms\Unread\Count” />

</label>

</Item>

<Item class=”registry_tracker” onhold=”InboxSms” >

<label text=”Unread SMS: %d” suppress0=”1″ fontsize=”14″ top=”90″ width=”180″ align=”left” left=”-157″ >

<registry keyvalue=”HKCU\System\State\Messages\sms\Unread\Count” />

</label>

</Item>

<!– Email Count Count with spacer line–>

<Item class=”registry_tracker” >

<label text=”______________________” suppress0=”1″ top=”70″ width=”180″ align=”left” left=”-199″ >

<registry keyvalue=”HKCU\System\State\Messages\Totalemail\Unread\Count” />

</label>

</Item>

<Item class=”registry_tracker” onhold=”InboxMail” >

<label text=”Unread Email: %d” suppress0=”1″ fontsize=”14″ top=”110″ width=”180″ align=”left” left=”-165″ >

<registry keyvalue=”HKCU\System\State\Messages\Totalemail\Unread\Count” />

</label>

</Item>

</View>

<!– 2nd Page –>

<View height=”260″ itemselect=”1″ adaptwidth=”3″>

<!– Monitoring Icons –>

<Item type=”iconvalue” class=”temperature” onhold=”OpenOptions” >

<image src=”temperature.png” left=”-13″ top=”10″ width=”20″ />

<label left=”-25″ top=”40″ height=”12″ width=”30″ />

</Item>

<Item type=”iconvalue” class=”cpuspeed” ontap=”ToggleView” onhold=”OpenOptions”>

<image src=”cpu_freq.png” left=”15″ top=”10″ />

<label left=”-30″ top=”40″ height=”12″ width=”30″ />

</Item>

<Item type=”iconvalue” class=”memory_program” onhold=”StartApp” path=”\Program Files\hibernate.lnk” ontap=”toggleview”>

<image src=”mem_apps.png” left=”20″ top=”14″ />

<label left=”-28″ top=”40″ height=”12″ width=”40″ />

</Item>

<Item type=”iconvalue” class=”memory_data” ontap=”toggleview”>

<image src=”mem_user.png” left=”15″ top=”14″ />

<label left=”-25″ top=”40″ height=”12″ width=”40″ />

</Item>

<Item type=”iconvalue” class=”memory_sdcard” ontap=”ToggleView”>

<image src=”sd.png” left=”15″ top=”15″ />

<label left=”-29″ top=”40″ height=”12″ width=”40″ />

</Item>

<!– Spacer Line –>

<Item class=”space” type=”value” >

<label text=”____________________________” width=”230″ left=”-201″ height=”120″ ontap=”toggleview” />

</Item>

<!– Messeges –>

<Item class=”registry_tracker” ontap=”Phonemissed” onhold=”ToggleView” absolute=”1″ width=”30″ height=”30″>

<image src=”MissedBtn%d.png” left=”13″ top=”75″/>

<label text=”%d” suppress0=”1″ width=”15″ top=”-35″ left=”-10″ >

<registry keyvalue=”HKCU\System\State\Phone\Missed Call Count” />

</label>

</Item>

<Item class=”registry_tracker” ontap=”Phone” onhold=”ToggleView” width=”30″ height=”30″ >

<image src=”VoicemailBtn%d.png” left=”-1″ top=”75″/>

<label text=”%d” suppress0=”1″ width=”15″ top=”-35″ left=”-10″ >

<registry keyvalue=”HKCU\System\State\Messages\vmail\Total\Unread\Count” />

</label>

</Item>

<Item class=”registry_tracker” ontap=”InboxSms” onhold=”ToggleView” width=”30″ height=”30″ >

<image src=”SMSBtn%d.png” left=”-1″ top=”75″ />

<label text=”%d” suppress0=”1″ width=”15″ top=”-35″ left=”-10″ >

<registry keyvalue=”HKCU\System\State\Messages\sms\Unread\Count” />

</label>

</Item>

<Item class=”registry_tracker” ontap=”InboxMail” onhold=”ToggleView” width=”30″ height=”30″ >

<image src=”EmailBtn%d.png” left=”-1″ top=”75″ />

<label text=”%d” suppress0=”1″ width=”15″ top=”-35″ left=”-10″ >

<registry keyvalue=”HKCU\System\State\Messages\TotalEmail\Unread\Count” />

</label>

</Item>

<!– Spacer Line –>

<Item class=”space” type=”value” >

<label text=”____________________________” width=”230″ left=”-192″ height=”220″ ontap=”toggleview” />

</Item>

</View>

</Row>

</Window>