0
     
    wrapperLayoutFeedback.addView(editText);
  } 
 
  private void loadTextInput(Context context) {
    EditText editText = new EditText(context);
    editText.setId(TEXT_EDIT_TEXT_ID);
     
    LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
     
    int margin = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, (float) 20.0, getResources().getDisplayMetrics());
    int minEditTextHeight = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, (float) 100.0, getResources().getDisplayMetrics());
    params.setMargins(0, 0, 0, margin);
     
    editText.setLayoutParams(params);
    editText.setImeOptions(EditorInfo.IME_ACTION_NEXT);
    editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_NORMAL | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
    editText.setSingleLine(false);
    editText.setTextColor(Color.GRAY);
    editText.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
    editText.setTypeface(null, Typeface.NORMAL);
    editText.setMinimumHeight(minEditTextHeight);
    editText.setHint("Message");
    editText.setHintTextColor(Color.LTGRAY);
     
    wrapperLayoutFeedback.addView(editText);
  } 
 
  private void loadLastUpdatedLabel(Context context) {
Stop searching for code, let great code find you!  Add Codota to your java IDE