Make compose EditText TYPE_TEXT_FLAG_CAP_SENTENCES

This commit is contained in:
Wesley Ellis 2017-04-18 22:10:48 -04:00
parent a33c259760
commit 14fdc9ed15
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFrag
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
editText.setLayoutParams(layoutParams);
editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE);
editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
editText.setEms(10);
editText.setBackgroundColor(0);
editText.setGravity(Gravity.START | Gravity.TOP);