मुझे आरटीएल भाषाओं में एंड्रॉइड इनपुट कर्सर के साथ समस्या है। जब मैं आरटीएल समर्थन लेआउट में हूं, मेरे पास दो इनपुट कर्सर हैं और यह वास्तव में मजाकिया है। क्या इसका वास्तविक समाधान है, इससे छुटकारा पाने के लिए?आरटीएल भाषाओं में एंड्रॉइड कर्सर
मैं अपने एंड्रॉयड यूआई RTL बनाने के लिए इस कोड का उपयोग:
getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);
और पाठ दृश्य के लिए इसे मेरा xml:
<android.support.design.widget.TextInputLayout
android:id="@+id/input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal"
android:id="@+id/myID"
android:maxLines="1"
android:focusableInTouchMode="true"
android:layout_weight="0.25"
android:layout_gravity="center_horizontal"
android:hint="phone Number"
android:maxLength="20"
android:gravity="center" />
</android.support.design.widget.TextInputLayout>
ऐसा हो सकता है कि आपने केंद्र में edittext गुरुत्वाकर्षण सेट किया है और कर्सर उलझन में आया है। ऐसा नहीं होना चाहिए, लेकिन सही गुरुत्वाकर्षण छोड़ने का प्रयास करें तो समस्या नहीं आ सकती है। बेहतर आप गुरुत्वाकर्षण मूल्य –
@ क्रिएटिव एंड्रॉइड मैंने आपके द्वारा जो कुछ भी कहा और अभी भी वही समस्या शुरू की है। –
अपने edittext xml –