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
751570e0
authored
May 01, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed - Issue#51 - v0.0.33_last message getting overlapped
.
parent
099662d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
app/src/main/java/com/vsoft/servicenow/ui/ChatActivity.java
app/src/main/java/com/vsoft/servicenow/ui/ChatActivity.java
View file @
751570e0
...
...
@@ -184,6 +184,34 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
}
});
//Below code for - Last message getting overlapped when virtual keyboard is opened.
mInputMessageView
.
setOnTouchListener
(
new
View
.
OnTouchListener
()
{
@Override
public
boolean
onTouch
(
View
view
,
MotionEvent
motionEvent
)
{
if
(
motionEvent
.
getAction
()
==
MotionEvent
.
ACTION_DOWN
)
{
if
(
mMessagesView
.
getAdapter
().
getItemCount
()
>
0
)
{
mMessagesView
.
addOnLayoutChangeListener
(
new
View
.
OnLayoutChangeListener
()
{
@Override
public
void
onLayoutChange
(
View
v
,
int
left
,
int
top
,
int
right
,
int
bottom
,
int
oldLeft
,
int
oldTop
,
int
oldRight
,
int
oldBottom
)
{
if
(
bottom
<
oldBottom
)
{
mMessagesView
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
mMessagesView
.
smoothScrollToPosition
(
mMessagesView
.
getAdapter
().
getItemCount
()
-
1
);
}
},
100
);
}
}
});
}
}
return
false
;
}
});
droidSpeech
=
new
DroidSpeech
(
this
,
getSupportFragmentManager
());
droidSpeech
.
setOnDroidSpeechListener
(
this
);
...
...
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