There are two edittext
<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/word" android:layout_below="@+id/wordCaption" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:onClick="enteredEnglish" android:clickable="true" android:digits="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"/>
and second
<EditText android:layout_width="wrap_content" android:layout_height="wrap_content" android:inputType="textMultiLine" android:ems="10" android:id="@+id/translate" android:layout_below="@+id/translateCaption" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentRight="true" android:layout_alignParentEnd="true" android:onClick="enteredRussian" android:clickable="true" android:digits="邪斜胁谐写械褢卸蟹懈泄泻谢屑薪芯锌褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟 袗袘袙袚袛袝衼袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携.," />
The problem with the second : I need, that there only Russian for input would be available, but English is issued, as in the first
I tried another option:
mTranslate = (EditText) findViewById(R.id.translate); mTranslate.setInputType(InputType.TYPE_CLASS_TEXT); mTranslate.setKeyListener(DigitsKeyListener.getInstance("邪斜胁谐写械褢卸蟹懈泄泻谢屑薪芯锌褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟 袗袘袙袚袛袝衼袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携"));
but it doesn鈥檛 work either - on my phone in general it shows only numbers. Tell me where to dig? Or maybe the sequence is a curve, then which one is correct? thank
Ps: forgot to add, tested on android 4.4.2, Asus ZenFone 5 phone