[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
  Disable voicemail for line 1 simonbr 0 91 11-19-2020 11:19 AM
Last Post: simonbr
  Disable line x while phone is set to DND IT-Risch_Support 3 1,982 08-07-2019 02:00 PM
Last Post: jolouis
  Network Conference on Shared Line JasonTricom 0 960 04-16-2019 09:06 PM
Last Post: JasonTricom
  Download Local Directory by Command Line Tools yealy 2 2,264 11-16-2018 07:19 AM
Last Post: yealy
  get status phone in command line Fixit 2 4,578 06-19-2017 06:06 PM
Last Post: Fraukas2
  Default Pick up line Nichfgv 0 2,511 12-31-2016 11:30 PM
Last Post: Nichfgv
  Outgoing Calls From the Analog Pluged Line Diorr 5 8,531 04-18-2016 02:56 PM
Last Post: jackstevens
  Second Line vgarza 1 3,991 03-05-2016 06:28 AM
Last Post: Yealink_Michael
  Line Pick up jonbubcruz 4 8,019 12-17-2015 05:16 AM
Last Post: Level8
  MWI for each line bridgepatel 2 4,159 07-14-2015 06:44 AM
Last Post: bridgepatel

Forum Jump:


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

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