Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
3932760b
Commit
3932760b
authored
Feb 10, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ChatViewerFragment: keyboard not shown automatically.
parent
888a2529
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ChatViewerFragment.java
...c/main/java/com/xabber/android/ui/ChatViewerFragment.java
+4
-0
chat_viewer_item.xml
app/src/main/res/layout/chat_viewer_item.xml
+4
-2
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewerFragment.java
View file @
3932760b
...
...
@@ -615,6 +615,10 @@ public class ChatViewerFragment extends Fragment {
public
void
setInputFocus
()
{
inputView
.
requestFocus
();
if
(
getActivity
()
!=
null
)
{
InputMethodManager
imm
=
(
InputMethodManager
)
getActivity
().
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
imm
.
hideSoftInputFromWindow
(
inputView
.
getWindowToken
(),
InputMethodManager
.
HIDE_IMPLICIT_ONLY
);
}
}
public
void
setInputText
(
String
text
)
{
...
...
app/src/main/res/layout/chat_viewer_item.xml
View file @
3932760b
...
...
@@ -54,8 +54,8 @@
<EditText
android:id=
"@+id/chat_input"
android:layout_weight=
"1"
android:inputType=
"textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions=
"actionSend|flagNoEnterAction"
android:inputType=
"textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
android:imeOptions=
"actionSend|flagNoEnterAction"
android:cursorVisible=
"true"
android:hint=
"@string/chat_input_hint"
android:layout_width=
"wrap_content"
...
...
@@ -63,6 +63,8 @@
android:maxLines=
"5"
android:scrollbars=
"vertical"
android:fadingEdge=
"vertical"
android:focusable=
"true"
android:descendantFocusability=
"beforeDescendants"
/>
<Button
android:text=
"@string/chat_send"
...
...
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