मैं एंड्रॉइड डेवलपमेंट में नया हूं। मैं अध्ययन ऐप बनाने का इरादा रखता हूं जो उपयोगकर्ताओं को अपने फोन "स्क्रीन पर लंबे लेखन पढ़ने की अनुमति देता है। मुझे यह कैसे करना है इस पर एक संकेत चाहिए। धन्यवाद!
उत्तर:
जवाब के लिए 0 № 1आप इसे प्राप्त करने के लिए अपना टेक्स्ट व्यू स्क्रोल करने योग्य और मल्टीलाइन बना सकते हैं:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_marginTop="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/receipt"
android:inputType="textMultiLine"
android:textSize="15dp"
android:textColor="#000000"
android:scrollbars="vertical"
android:gravity="center"
android:text=""/>
</ScrollView>