Я создал динамический экран с editText в нем ... но после щелчка он не показывает виртуальную клавиатуру. Я добавил эти следующие коды ... но все же отработал.EditText не показывает виртуальную клавиатуру
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
и это также вмятина работала
InputMethodManager im = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
im.showSoftInput (EditText, 0);
мой код здесь ...
runOnUiThread(new Runnable() {
public void run() {
LinearLayout findViewById = (LinearLayout) findViewById(R.id.dynamicInputs);
//TextView textView = (TextView) findViewById(R.id.name);
TextView textView = new TextView(Activity_UserInput.this);
textView.setText(" " + map.get(KEY_NAME) + " :");
textView.setTextColor(Color.BLACK);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 17);
//textView.setLayoutParams(new LayoutParams(Layout.DIR_LEFT_TO_RIGHT, Gravity.CENTER_VERTICAL));
findViewById.addView(textView);
EditText editText = new EditText(Activity_UserInput.this);
editText.setText("");
//editText.setInputType(InputType.TYPE_CLASS_NUMBER);
findViewById.addView(editText);
}
эй все ... спасибо за ваш ответ .. это была проблема настроек avd .. она работала правильно в разных avd. – user2384710