Android TextView and how to determine the number of visible characters?

Ideally, you design your GUI such that it does not matter. For example, you can use android:ellipsize to deal with strings that are too long for the available space There are classes in the 2D drawing APIs (e. G Paint ) that seem to be tied into this, but it does not look like much fun.

Ideally, you design your GUI such that it does not matter. For example, you can use android:ellipsize to deal with strings that are too long for the available space. There are classes in the 2D drawing APIs (e.g. , Paint) that seem to be tied into this, but it does not look like much fun.

Thank you for your answer. Currently I am developing a small text based game to become acquainted with the Android API. For that reason I need to know exactly how much characters can be displayed in the visible area of a TextView widget.

I saw an example of Paint but wanted to know if there are better solutions.

You can use ellipsize property but there has been a bug that has been filed on the same code.google.com/p/android/issues/detail?... On the bottom of this page you could find an alternate approach which can draw exactly the number of lines on a given space...

The number you are searching for is 1000000000.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions