Entered Text for Customized editor is not visible

Chinmay Dole 100 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?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,130 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,221 Reputation points Microsoft Vendor
    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