मैं एप्लिकेशन से एप्लिकेशन बनाने का प्रयास करता हूं, ऐप में मेरे पास एक लंबा रूप है जिसे मैं स्क्रॉल व्यू में रखना चाहता हूं, लेकिन जब मैं scrollView में EditText जोड़ता हूं .. ग्रहण कुछ त्रुटि दिखाता है अपने डिजाइनर दृश्य में।एंड्रॉइड में स्क्रॉल व्यू में एडिटटेक्स्ट
error!
IllegalStateException: ScrollView can host only one direct child
Exception details are logged in Window > Show View > Error Log
किसी को भी इसे क्रैक करने का विचार है?
मैं ऊपर मुसीबत के लिए एक समाधान प्राप्त करने के बाद इस कोड को शामिल किया है ..!
अब एडिटटेक्स्ट कोई टाइप किए गए टेक्स्ट को नहीं दिखा रहा है, यह सिर्फ कुछ सुझाव देता है ...!
<ScrollView
android:id="@+id/widget64"
android:layout_width="320px"
android:layout_height="358px"
android:fillViewport="true"
android:isScrollContainer="true"
android:saveEnabled="true">
<TableLayout
android:id="@+id/widget58"
android:layout_width="320px"
android:layout_height="65px"
android:orientation="vertical"
>
<TableRow
android:id="@+id/widget60"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/user"
android:text="User"
android:textColor="#000000">
</TextView>
</TableRow>
<TableRow
android:id="@+id/widget60"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
>
<EditText
android:id="@+id/users_first_name"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:hint="First Name"
android:focusable="true"
android:inputType="textPersonName"
android:enabled="true"
android:ems="15">
</EditText>
</TableRow>
</TableLayout>
</ScrollView>
मिले मुसीबत ..... मेरे एमुलेटर कुंजी अंग्रेजी के बजाय चीनी के लिए स्थापित किया गया था ...
धन्यवाद एक lot..it काम करता है – rahul
मैं कैसे यह दर कर सकते हैं ..? – rahul
बाईं ओर बाईं ओर बाईं ओर – Pinki