cancel
Showing results for 
Search instead for 
Did you mean: 

How to set fixed length of TextView ?

Former Member
0 Kudos

Hi All,

I am using a TextView element in my application.I want to set a fixed length to it.How can i do it dynamically.Please help me.

thanx

anirudh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Anirudh,

It's impossible to do explicitly.

But you do the following: place TextView in TransparentContainer, set wrapping on TextView to false and define exact width of transparent container in relative units like 10em (depends on font size) or 60pt.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi,

See <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b3f6e990-0201-0010-c087-c865f2c738b3">this tutorial</a>.

Jeroen