Currently, I have a layout which contains a Button, a TextView and an EditText. When the layout is displayed, the focus will be automa
You can start by adding android:windowSoftInputMode to your activity in AndroidManifest.xml file.
This will make the keyboard to not show, but EditText is still got focus. To solve that, you can set android:focusableInTouchmode and android:focusable to true on your root view.
The code above will make sure that RelativeLayout is getting focus instead of EditText