Ich habe versucht, diese EingabeType aber mein Problem nicht lösen. Meine XML können Sie sehen. Please any suggestion.I erweitert softkeyboard Klasse öffentliche Klasse SoftKeyboard erweitert InputMethodService implementiert KeyboardView.OnKeyboardActionListener, SharedPreferences.OnSharedPreferenceChangeListener {- Vielen Dank im Voraus.Wie Start Tastatur beginnen mit Großbuchstaben und wenn drücken Sie Punkt erneut beginnen mit Großbuchstaben in Soft-Tastatur
<?xml version="1.0" encoding="utf-8"?>
<LatinKeyboardView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/urduSimple"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true"
android:alpha="1"
android:imeOptions="actionSearch"
android:inputType="textCapSentences"
android:keyBackground="@drawable/transparent_key_shape"
android:keyPreviewLayout="@layout/key_preview"
android:keyPreviewOffset="-4dp"
android:keyTextColor="@color/White"
android:paddingTop="4dp"
android:keyTextSize="28dp"
android:shadowRadius="0.0"
android:popupLayout="@layout/keyboard_popup_layout">
</LatinKeyboardView>
Java:
case InputType.TYPE_CLASS_TEXT:
EditText editor = new EditText(this);
editor.setInputType(InputType.TYPE_CLASS_TEXT |
InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
Erklären Sie, was Sie in Schritten erreichen möchten. – ADM
Mögliches Duplikat von [Großschreibung des ersten Buchstabens für EditText] (https://stackoverflow.com/questions/4808705/first-letter-capitalization-for-edittext) –
Hy ADM möchte ich erreichen, wenn ich anfange, meine benutzerdefinierte Tastatur dann einzugeben Anfangsbuchstaben sollten Großbuchstaben sein. – Ayan