Entered Text for Customized editor is not visible

Chinmay Dole 300 Reputation points
2024-06-20T05:42:18.6166667+00:00

Hello, I have a custom editor. Below is the screenshot of basic code implemented:-

User's image

After implementation, the entered text by the user is not visible on Andriod phone.

Also, while typing, the editor hides inside the mobile keyboard. What is the solution to this issue?

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Answer accepted by question author
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,161 Reputation points Microsoft External Staff
    2024-06-20T08:23:17.6133333+00:00

    Hello,

    After implementation, the entered text by the user is not visible on Andriod phone.

    After testing, it turns out that the input is not not displayed, but the width of the Editor control exceeds the screen.

    This is because MainDisplayInfo.Width returns pixels, but the unit used on mobile phones is Dp. You can convert it to the equivalent dp value of the screen width as follows.

    WidthRequest = DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density - 90;
    

    while typing, the editor hides inside the mobile keyboard. What is the solution to this issue?

    This is related to platform specific input settings, you can refer to this official documentation to change it in MAUI.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.