[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


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
  W80DM W57R Line issue Boxtec 0 2,016 08-09-2022 11:52 PM
Last Post: Boxtec
  Record line key use when recording is ON by default - 3CX GMLNT 0 2,810 07-13-2022 02:47 AM
Last Post: GMLNT
Question Show "called line" on phone? Voodoopupp 2 7,411 02-25-2021 04:17 PM
Last Post: Voodoopupp
  Disable voicemail for line 1 simonbr 0 6,896 11-19-2020 11:19 AM
Last Post: simonbr
  Disable line x while phone is set to DND IT-Risch_Support 3 10,485 08-07-2019 02:00 PM
Last Post: jolouis
  Network Conference on Shared Line JasonTricom 0 4,326 04-16-2019 09:06 PM
Last Post: JasonTricom
  Download Local Directory by Command Line Tools yealy 2 9,226 11-16-2018 07:19 AM
Last Post: yealy
  get status phone in command line Fixit 2 11,765 06-19-2017 06:06 PM
Last Post: Fraukas2
  Default Pick up line Nichfgv 0 5,869 12-31-2016 11:30 PM
Last Post: Nichfgv
  Outgoing Calls From the Analog Pluged Line Diorr 5 18,341 04-18-2016 02:56 PM
Last Post: jackstevens

Forum Jump:


User(s) browsing this thread:

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