Android Studio 2.1.1을 사용하고 있습니다.백 스페이스 키가 webview의 Html 텍스트 입력에서 태국어 모음을 삭제하지 않습니다.
내 webview에서 텍스트 형식의 입력으로 로컬 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>
내가 안드로이드에 새로운 오전. 나는이 문제에 대해 어떻게 생각하는지 모른다. 제발 조언.