Forum Xamarin.Android

Soft keyboard hides edit text inside scroll view(Xamarin Android)

I new developer for 'Xamarin Android' ,i faced one issue now i will explain.

Inside scroll view have multiple edit text ,when i click or focus last edit text showing soft key board,but what problem means soft keyboard hides last edit text,but cursor was focused and also typed.

Now i need when i click or focus edit text means edit text show only above the soft key board.

I already fixed same issue in android studio using window Soft Input Mode = 'adjust pan|adjust resize' like,but in 'Xamarin android' i added both soft input parameter,but i can't get output please any one help me.

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    AdjustResize works fine on my side ,

    Set WindowSoftInputMode in your MainActivity.cs.

      [Activity(Label = "MyActivity", Theme = "@style/CustomTheme", WindowSoftInputMode = SoftInput.AdjustResize)]
    

    Or code behind

     Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);
    
  • Saravanan618Saravanan618 Member ✭✭

    I tried but its not working,buz inside scroll view i used absolute layout then based on X,Y position i added multiple edit text to absolute layout .if i click last edit text keyboard open and hides edit text,so how can solve this,please help me

  • ColeXColeX Member, Xamarin Team Xamurai

    Could you provide a basic and minimal project to reproduce the issue ?

    Just zip and attach it in comment .

Sign In or Register to comment.