[Android] EntryCells and Entry views within ViewCells lose focus


On Android, Entry views within ViewCells will lose focus after the first keyboard entry. The same problem can also affect EntryCells on certain soft keyboards.

The problem stems from the corresponding problem on Android for EditText views within ListViews:

Work around

Set WindowSoftInputMode = Android.Views.SoftInput.AdjustPan on the main activity in the Android app:

[Activity(Label = "ItemTappedSample", MainLauncher = true,
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation,
WindowSoftInputMode = Android.Views.SoftInput.AdjustPan)]
public class MainActivity : AndroidActivity

Additional references

Last Updated: Sep 21, 2014 12:33AM EDT