私はAndroid Studio 2.1.1を使用しています。バックスペースキーでwebviewのHtmlテキスト入力でタイ語の母音が削除されない
私は、Webビューでテキストタイプの入力を持つローカルHTMLファイルを開きます。私は、ダイナミックキーボードのバックスペースキーが、子音の上または下にあるタイ語の母音を削除しないことを発見しました。ただし、EditTextビューでは、バックスペースキーはタイ語母音に問題はありません。タイ語の子音と母音の両方の文字をすべて削除します。
MainActivity.java
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final EditText simpleEditText = (EditText) findViewById(R.id.simpleEditText);
WebView wv = (WebView)findViewById(R.id.webview);
wv.loadUrl("file:///android_asset/test_input.html");
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.thongjoon.edittext.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@id/simpleText"
android:text="Hello World!"/>
<EditText
android:id="@+id/simpleEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/simpleText"
android:hint="Enter Your Name Here" />
<WebView android:id="@+id/webview"
android:layout_below="@id/simpleEditText"
android:layout_width="fill_parent"
android:layout_height="50dp"/>
</RelativeLayout>
test_input.html
<!doctype html>
<html lang="th">
<head>
<meta charset="utf-8">
<title>Document</title>
</head>
<body>
ทดสอบ<input type="text" name="yourname" value="Your Name"><br>
</body>
</html>
私は、Androidに新しいです。私は本当にこの問題についてどうやって行くのか分かりません。お知らせ下さい。