Commit 18aac3ae by Kunj Gupta

UOFLMA-110: Fixed - First letter in all fields has to be capital.

parent 7b481307
...@@ -53,7 +53,7 @@ public class Util { ...@@ -53,7 +53,7 @@ public class Util {
EditText multiLineEditText = new EditText(context); EditText multiLineEditText = new EditText(context);
multiLineEditText.setSingleLine(false); multiLineEditText.setSingleLine(false);
multiLineEditText.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION); multiLineEditText.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION);
multiLineEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE); multiLineEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
multiLineEditText.setLines(3); multiLineEditText.setLines(3);
multiLineEditText.setVerticalScrollBarEnabled(true); multiLineEditText.setVerticalScrollBarEnabled(true);
multiLineEditText.setGravity(Gravity.START); multiLineEditText.setGravity(Gravity.START);
...@@ -62,7 +62,7 @@ public class Util { ...@@ -62,7 +62,7 @@ public class Util {
EditText htmlEditText = new EditText(context); EditText htmlEditText = new EditText(context);
htmlEditText.setSingleLine(false); htmlEditText.setSingleLine(false);
htmlEditText.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION); htmlEditText.setImeOptions(EditorInfo.IME_FLAG_NO_ENTER_ACTION);
htmlEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE); htmlEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
htmlEditText.setLines(3); htmlEditText.setLines(3);
htmlEditText.setVerticalScrollBarEnabled(true); htmlEditText.setVerticalScrollBarEnabled(true);
htmlEditText.setGravity(Gravity.START); htmlEditText.setGravity(Gravity.START);
...@@ -87,11 +87,13 @@ public class Util { ...@@ -87,11 +87,13 @@ public class Util {
EditText singleLineEditText = new EditText(context); EditText singleLineEditText = new EditText(context);
singleLineEditText.setSingleLine(true); singleLineEditText.setSingleLine(true);
singleLineEditText.setLines(1); singleLineEditText.setLines(1);
singleLineEditText.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
return singleLineEditText; return singleLineEditText;
case WIDE_SINGLE_LINE_TEXT: case WIDE_SINGLE_LINE_TEXT:
EditText wideSingleLineEditText = new EditText(context); EditText wideSingleLineEditText = new EditText(context);
wideSingleLineEditText.setSingleLine(true); wideSingleLineEditText.setSingleLine(true);
wideSingleLineEditText.setLines(1); wideSingleLineEditText.setLines(1);
wideSingleLineEditText.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
return wideSingleLineEditText; return wideSingleLineEditText;
case DATE: case DATE:
Button dateTextButton = new Button(context); Button dateTextButton = new Button(context);
...@@ -106,6 +108,7 @@ public class Util { ...@@ -106,6 +108,7 @@ public class Util {
case REFERENCE: case REFERENCE:
EditText referenceEditText = new EditText(context); EditText referenceEditText = new EditText(context);
referenceEditText.setLines(1); referenceEditText.setLines(1);
referenceEditText.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
referenceEditText.setSingleLine(true); referenceEditText.setSingleLine(true);
referenceEditText.setFocusable(false); referenceEditText.setFocusable(false);
referenceEditText.setFocusableInTouchMode(false); referenceEditText.setFocusableInTouchMode(false);
...@@ -132,6 +135,7 @@ public class Util { ...@@ -132,6 +135,7 @@ public class Util {
EditText maskedEditText = new EditText(context); EditText maskedEditText = new EditText(context);
maskedEditText.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD); maskedEditText.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
maskedEditText.setLines(1); maskedEditText.setLines(1);
maskedEditText.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
maskedEditText.setSingleLine(true); maskedEditText.setSingleLine(true);
maskedEditText.setTransformationMethod(PasswordTransformationMethod.getInstance()); maskedEditText.setTransformationMethod(PasswordTransformationMethod.getInstance());
return maskedEditText; return maskedEditText;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment