New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML Line Spacing (Leading)
Author Message
TekMason Offline
Junior Member
**

Posts: 5
Joined: Dec 2013
Reputation: 0
Post: #1
XML Line Spacing (Leading)
I am working on a Weather application to use on T38Gs (38.70.0.132 Firmware) but I have come across an issue with text layout when using the FormattedTextScreen XML Object and layout of the text with <Line> tags.

When <Line Size="small"> is used the line spacing (Leading) for that text is the same as what it is for a normal size font. This makes the display look ugly, unprofessional and unnecessarily wastes a lot of screen real estate.

Here is the code (Pic1 attachment):
----------------------------------------------------
<YealinkIPPhoneFormattedTextScreen Beep="yes" Timeout="60" LockIn="no">
<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>

<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h.</Line>
<Line Size="small">High plus 4.</Line>

<Line Size="normal">Tuesday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A blizzard.</Line>
<Line Size="small">Wind southwest 90 km/h.</Line>
<Line Size="small">High minus 10.</Line>
</Scroll>
</YealinkIPPhoneFormattedTextScreen>
----------------------------------------------------

Combining the lines of text with carriage returns under one <Line> tag,like this (Pic2 attachment):
----------------------------------------------------
<YealinkIPPhoneFormattedTextScreen Beep="yes" Timeout="60" LockIn="no">
<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C
Pressure: 100.7 kPa falling
Wind: S 31 km/h gust 45 km/h</Line>

<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.
Wind southwest 30 km/h.
High plus 4.</Line>

<Line Size="normal">Tuesday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A blizzard.
Wind southwest 90 km/h.
High minus 10.</Line>
</Scroll>
</YealinkIPPhoneFormattedTextScreen>
----------------------------------------------------
It puts proper line spacing for the small font on the phone but will display only 2 lines (see XML FormattedTextScreen post for additional details) under each <Line> tag.

Suggestions?

BTW Is there a direct line or contact for Yealink developer support?

TekMason


Attached File(s) Thumbnail(s)
       
(This post was last modified: 01-17-2014 05:15 AM by TekMason.)
01-17-2014 04:30 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
XML Line Spacing (Leading) - TekMason - 01-17-2014 04:30 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Network Conference on Shared Line JasonTricom 0 99 04-16-2019 09:06 PM
Last Post: JasonTricom
  Download Local Directory by Command Line Tools yealy 2 639 11-16-2018 07:19 AM
Last Post: yealy
  get status phone in command line Fixit 2 2,460 06-19-2017 06:06 PM
Last Post: Fraukas2
  Default Pick up line Nichfgv 0 1,298 12-31-2016 11:30 PM
Last Post: Nichfgv
  Outgoing Calls From the Analog Pluged Line Diorr 5 6,045 04-18-2016 02:56 PM
Last Post: jackstevens
  Second Line vgarza 1 2,981 03-05-2016 06:28 AM
Last Post: Yealink_Michael
  Line Pick up jonbubcruz 4 5,912 12-17-2015 05:16 AM
Last Post: Level8
  MWI for each line bridgepatel 2 2,868 07-14-2015 06:44 AM
Last Post: bridgepatel
  Call Waiting up to the Line Number macbeto 1 2,990 03-02-2015 11:13 AM
Last Post: James_Yealink
  T32G Second and Third Calls Coming on Line 1 SupermanTB 2 3,847 08-14-2014 03:14 AM
Last Post: SupermanTB

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication