हाल ही में (शायद एक नई एसडीके सुविधा के रूप में), जब मैं Textview
से टेक्स्ट खींचने का प्रयास करता हूं, तो मुझे पहले getText()
की बजाय विधि getFreezesText()
मिलती है।टेक्स्ट व्यू में (एस/जी) 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)
यह मेरे लिए कुछ बताता है कहते हैं।
जब हमें इन तरीकों का उपयोग करना है (यदि कभी भी बिल्कुल)? क्या वे नए हैं या मैंने अभी उन्हें देखा है?
और आउटपुट कैसा दिखता है? क्या यह केवल दृश्यमान पाठ है (यदि पाठ की लंबाई बड़ी है तो टेक्स्टव्यू चौड़ाई)? – sandalone
प्रलेखन 'वर्तमान पूर्ण पाठ' कहता है। हालांकि मैंने इसे व्यक्तिगत रूप से उपयोग नहीं किया है। –