xamarin.android - Specifying requestfocus flag for an edit text with monodroid? -


I am trying to edit a text one content through a layout file:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "vertical" & gt; & Lt; EditText android: id = "@ + id / etEditText1" Android: layout_width = "match_parent" android: layout_height = "wrap_content" android: ems = "10" & gt; & Lt; Request Focus / & gt; & Lt; / EditText> & Lt; / LienarLayout & gt;   

The problem is that the Visual Studio complains that I can not use it there, how do I get it?

Thanks in advance.

Note two things here:

  1. Because the Visual Studio XML It does not mean that there is a problem in the fact that the schemata provided for AXML documents is for fundamental knowledge, but not 100%. In this case, if you compile and run the app, you will find that it actually works as expected.
  2. However, there is a real problem with your XML. Your ending linear tag is misspelled which will speed up the build build error. Call it & lt; / LinearLayout & gt; .

Comments