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
567bfc19
authored
May 01, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed - In My Request screen, hardcode text is showing.
parent
751570e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
app/src/main/java/com/vsoft/servicenow/adapters/MyRequestAdapter.java
app/src/main/res/layout/request_list_item.xml
app/src/main/java/com/vsoft/servicenow/adapters/MyRequestAdapter.java
View file @
567bfc19
...
@@ -89,6 +89,9 @@ public class MyRequestAdapter extends BaseAdapter {
...
@@ -89,6 +89,9 @@ public class MyRequestAdapter extends BaseAdapter {
}
else
if
(
req
.
getApproval
().
equalsIgnoreCase
(
"rejected"
)){
}
else
if
(
req
.
getApproval
().
equalsIgnoreCase
(
"rejected"
)){
holder
.
approval
.
setText
(
mContext
.
getResources
().
getString
(
R
.
string
.
rejected
));
holder
.
approval
.
setText
(
mContext
.
getResources
().
getString
(
R
.
string
.
rejected
));
((
GradientDrawable
)
holder
.
statusIndicator
.
getBackground
()).
setColor
(
Color
.
parseColor
(
"#FF0000"
));
((
GradientDrawable
)
holder
.
statusIndicator
.
getBackground
()).
setColor
(
Color
.
parseColor
(
"#FF0000"
));
}
else
if
(
req
.
getApproval
().
equalsIgnoreCase
(
"not yet requested"
))
{
holder
.
approval
.
setText
(
mContext
.
getResources
().
getString
(
R
.
string
.
notrequest
));
((
GradientDrawable
)
holder
.
statusIndicator
.
getBackground
()).
setColor
(
Color
.
parseColor
(
"#5CE1ED"
));
}
}
}
}
return
convertView
;
return
convertView
;
...
...
app/src/main/res/layout/request_list_item.xml
View file @
567bfc19
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
android:layout_alignParentTop=
"true"
android:layout_alignParentTop=
"true"
android:layout_marginLeft=
"@dimen/my_request_left"
android:layout_marginLeft=
"@dimen/my_request_left"
android:layout_marginTop=
"@dimen/my_request_top"
android:layout_marginTop=
"@dimen/my_request_top"
android:text=
"Large Text"
android:textSize=
"@dimen/ruquest_descps_text_size"
android:textSize=
"@dimen/ruquest_descps_text_size"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -27,7 +26,6 @@
...
@@ -27,7 +26,6 @@
android:layout_alignStart=
"@+id/number"
android:layout_alignStart=
"@+id/number"
android:layout_below=
"@+id/number"
android:layout_below=
"@+id/number"
android:layout_marginTop=
"@dimen/my_request_top"
android:layout_marginTop=
"@dimen/my_request_top"
android:text=
"Large Text"
android:textColor=
"#000000"
android:textColor=
"#000000"
android:textSize=
"@dimen/ruquest_descps_text_size"
android:textSize=
"@dimen/ruquest_descps_text_size"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -51,7 +49,6 @@
...
@@ -51,7 +49,6 @@
android:layout_marginLeft=
"@dimen/my_request_right"
android:layout_marginLeft=
"@dimen/my_request_right"
android:layout_marginTop=
"@dimen/my_request_new_top"
android:layout_marginTop=
"@dimen/my_request_new_top"
android:layout_toRightOf=
"@+id/approval_image"
android:layout_toRightOf=
"@+id/approval_image"
android:text=
"Large Text"
android:textColor=
"#8e8e8e"
android:textColor=
"#8e8e8e"
android:textSize=
"@dimen/ruquest_status_text_size"
/>
android:textSize=
"@dimen/ruquest_status_text_size"
/>
</RelativeLayout>
</RelativeLayout>
\ No newline at end of file
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