8
Textview
からテキストを取り込もうとすると、最近(おそらく新しいSDKの機能として)、の代わりにgetFreezesText()
というメソッドが取得されます。TextViewの(s/g)etFreezesTextとは何ですか?
私は、このメソッドの定義を見て、それが
**android:freezesText**
If set, the text view will include its current complete text inside of its frozen icicle in addition to meta-data such as the current cursor position. By default this is disabled; it can be useful when the contents of a text view is not stored in a persistent place such as a content provider.
Must be a boolean value, either "true" or "false".
This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.
This corresponds to the global attribute resource symbol freezesText.
Related Methods
setFreezesText(boolean)
これは私に何も伝えていないと言います。
これらのメソッドを使用する予定がある場合(これはまったくありません)彼らは新しいのですか、それとも気づいたのですか? freezesText
上
<TextView
...
android:freezesText="true" />
ドキュメントから:
出力はどのように表示されますか?表示されるテキストのみです(テキストの長さがTextViewの幅より大きい場合)? – sandalone
ドキュメントには「現在の完全なテキスト」と書かれています。私は個人的にそれを使用していない。 –