Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
18aac3ae
authored
Sep 28, 2016
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
UOFLMA-110: Fixed - First letter in all fields has to be capital.
parent
7b481307
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
app/src/main/java/com/vsoft/uoflservicenow/utils/Util.java
app/src/main/java/com/vsoft/uoflservicenow/utils/Util.java
View file @
18aac3ae
...
...
@@ -53,7 +53,7 @@ public class Util {
EditText
multiLineEditText
=
new
EditText
(
context
);
multiLineEditText
.
setSingleLine
(
false
);
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
.
setVerticalScrollBarEnabled
(
true
);
multiLineEditText
.
setGravity
(
Gravity
.
START
);
...
...
@@ -62,7 +62,7 @@ public class Util {
EditText
htmlEditText
=
new
EditText
(
context
);
htmlEditText
.
setSingleLine
(
false
);
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
.
setVerticalScrollBarEnabled
(
true
);
htmlEditText
.
setGravity
(
Gravity
.
START
);
...
...
@@ -87,11 +87,13 @@ public class Util {
EditText
singleLineEditText
=
new
EditText
(
context
);
singleLineEditText
.
setSingleLine
(
true
);
singleLineEditText
.
setLines
(
1
);
singleLineEditText
.
setInputType
(
InputType
.
TYPE_TEXT_FLAG_CAP_SENTENCES
);
return
singleLineEditText
;
case
WIDE_SINGLE_LINE_TEXT:
EditText
wideSingleLineEditText
=
new
EditText
(
context
);
wideSingleLineEditText
.
setSingleLine
(
true
);
wideSingleLineEditText
.
setLines
(
1
);
wideSingleLineEditText
.
setInputType
(
InputType
.
TYPE_TEXT_FLAG_CAP_SENTENCES
);
return
wideSingleLineEditText
;
case
DATE:
Button
dateTextButton
=
new
Button
(
context
);
...
...
@@ -106,6 +108,7 @@ public class Util {
case
REFERENCE:
EditText
referenceEditText
=
new
EditText
(
context
);
referenceEditText
.
setLines
(
1
);
referenceEditText
.
setInputType
(
InputType
.
TYPE_TEXT_FLAG_CAP_SENTENCES
);
referenceEditText
.
setSingleLine
(
true
);
referenceEditText
.
setFocusable
(
false
);
referenceEditText
.
setFocusableInTouchMode
(
false
);
...
...
@@ -132,6 +135,7 @@ public class Util {
EditText
maskedEditText
=
new
EditText
(
context
);
maskedEditText
.
setInputType
(
InputType
.
TYPE_TEXT_VARIATION_PASSWORD
);
maskedEditText
.
setLines
(
1
);
maskedEditText
.
setInputType
(
InputType
.
TYPE_TEXT_FLAG_CAP_SENTENCES
);
maskedEditText
.
setSingleLine
(
true
);
maskedEditText
.
setTransformationMethod
(
PasswordTransformationMethod
.
getInstance
());
return
maskedEditText
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment