E
E
eellazy2016-01-09 19:56:17
Java
eellazy, 2016-01-09 19:56:17

How to disable screen shift?

Hello.
When you start the activity, a keyboard appears. I would also like to remove it, but that's later ... If anyone knows, tell me)
How to make a ban on screen shift? The activity starts, the keyboard appears and my activity, or rather the content, moves up. How to disable this shift? I need the keyboard to be on top of the activity

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Malyarov, 2016-01-09
@Konstantin18ko

Put the contents of the activity in a vertical scrolling avktviti.

K
Konstantin Dovnar, 2016-01-10
@SolidlSnake

In the manifest, use the windowSoftInputMode property as you please.
For example, stateAlwaysHidden will always hide the keyboard in an activity, which is what you seem to want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question