title: Alert dialog , editText android java
body: <pre><code>  AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
  
      TextView titleView = new TextView(this);
      EditText editTextView = new EditText(this);
  
      titleView.setText(&quot;PASSWORD&quot;);
      editTextView.setHint(&quot;password&quot;);
      editTextView.setFilters(new InputFilter[]{new InputFilter.LengthFilter(15)});
      titleView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
  
      dialogBuilder.setCustomTitle(titleView);
      dialogBuilder.setView(editTextView);
      dialogBuilder.setPositiveButton(&quot;confirm&quot;, new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface DialogInterface, int i) {
  
              String editTextInput = editTextView.getText().toString();
              
          }
      });
  
  
      dialogBuilder.setNegativeButton(&quot;dismiss&quot;, new DialogInterface.OnClickListener() {
          @Override
          public void onClick(DialogInterface dialogInterface, int i) {
              dialogInterface.dismiss();
          }
      });
  
      AlertDialog alertDialog = dialogBuilder.create();
      
  
      alertDialog.show();
  </code></pre>
  <p>This is my alert dialog . When ,dialog shows, keyboard gets up and editText has focus , i tried to force hidding keyboard different ways but without success so far . I looking forward to show this diakog while keeping keyboard down .</p>