Android: EditText turns on keyboard automatically, how to stop?
First the tag is monodroid so it's on C# so the accepted answer is correct.
But is not what I think the author wants... this trick just hide the keyboard but the editText still have the focus.
To do this both in java and c#, you have to put this in your root Layout :
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true"
For example :
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true"
>
....
</LinearLayout>
I found this to be the solution:
Window.SetSoftInputMode (SoftInput.StateAlwaysHidden);
Note: This is in C# not Java for Android