-
GurudathLikes 0Problem Description
Hello,
I have created UITextview in cocos2dx - 3.10.
When i click on text view keyboard appears. At that time i want to move up a view so that i can see the UITextview. Since UITextview is placed at the bottom.
This feature is implemented in Editbox. But this feature is not working in TextView.
In textview we can align the text. In Editbox we don't have that feature.
Is it possible to move keyboard up with UITextView?
Thanks in advance,
Gurudath
-
Sonar Systems adminLikes 0
Are you asking if the UITextView can be moved up along with the keyboard as it pops up from the bottom.
-
GurudathLikes 0
Yes.
UITextView need to move along with the keyboard.
In Editbox this feature is present. But i fail to get it work on UITextView
Regards,
Gurudath
-
GurudathLikes 0
Hi Sonar Systems,
Any Updates?
-
Sonar Systems adminLikes 0
Any reason why you cant use EditBox?
-
GurudathLikes 0
Yeah.
I want to make Text Center alignment in view. In Editbox we dont have alignment feature. In TextView we can Align the Text.
So i want to Use Textview instead of Editbox.
-
Sonar Systems adminLikes 0
Can you detect when the keyboard pops up
-
GurudathLikes 0
Yes.
I will get event callback.
On textFieldEvent when keyboard pops up case TextField::EventType::ATTACH_WITH_IME: event will be fired.
-
Sonar Systems adminLikes 0
Have you tried manually moving up the UITextView?
-
GurudathLikes 0
Yes. I tried manually moving up UITextView.
But am not getting callback when keyboard goes back.
-
Sonar Systems adminLikes 0
Have you tried any other EventTypes?
-
GurudathLikes 0
Yes. I tried with other event type like DETACH_WITH_IME .
Event callbacks are not proper. There is delay in callback.
-
Sonar Systems adminLikes 0
How much of a delay?
-
GurudathLikes 0
The delay is not constant for all the time. Some time it calls with in one second. Some time it calls after 3 sec, Some time it calls after user interaction.
Login to reply