2012-02-03 15 views
0

以下を実行しようとしています。利用可能な部屋に応じてテキストサイズを自動調整する

最大サイズ(たとえば400x400)が指定されています。スペースを埋めるためにサイズが変化するテキストを作成します。たとえば、目的のテキストが "A"の場合、textSize値は高くなりますが、長い文章を書くと、textSizeを小さくしてサイズに合わせる必要があります。

簡単に実装できますか?おかげで

答えて

1

あなたの経験レベルによって異なります。 「容易に」主観的です。適切な開始場所を提供するそこにimplementationsがあります。

1
Give the textview fill_parent hight and width so that as you type e.g ASDF then it will automatically reduce size and if only "A" then it will show max hight and widht. 
This textview will set in layout which hight and width you will set as you want like 400*400. 
If any double catch me.. 

ベスト V.k

関連する問題