iOS Question Keyboard background color and animation

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

I noticed that keyboard has translucent background. How to make it opaque ?
And relative question. Is it possible to prevent animation of keyboard ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
You can change the keyboard appearance with the designer:
(TextField or TextArea property)
SS-2019-04-25_12.22.44.png

There are two options.

You can disable most or all animations with:
B4X:
Dim no As NativeObject
no.Initialize("UIView").RunMethod("setAnimationsEnabled:", Array(False))
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Erel --

I made a small sample to demonstrate a problem. It's possible to see yellow color under keyboard.

About animation. Where how to take UIView from UITextField ?
Picture.PNG
 

Attachments

  • 1.zip
    2.2 KB · Views: 179
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I made a small sample to demonstrate a problem. It's possible to see yellow color under keyboard.
This is how the keyboard looks in iOS. You can put a view behind it in you like when the keyboard appears.

About animation. Where how to take UIView from UITextField ?
You don't take anything from the text field. This is a global setting.
 
Upvote 0
Top