AmrDeveloper / CodeView

Android Library to make it easy to create an Code editor or IDE that support any languages and themes, with auto complete, auto indenting, snippets and more features
https://amrdeveloper.github.io/CodeView/
MIT License
384 stars 51 forks source link

Bug in RTL Languages #24

Closed Arashvscode closed 2 years ago

Arashvscode commented 2 years ago

Hello, in Persian, the editor disappears strangely

AmrDeveloper commented 2 years ago

Hello @Arashvscode,

Thanks for your report, can you share some text example so we can test it and find the issue, it will be better if you can share video or gif for the issue if you can

Thanks Amr Hesham

Arashvscode commented 2 years ago

Hello @Arashvscode,

Thanks for your report, can you share some text example so we can test it and find the issue, it will be better if you can share video or gif for the issue if you can

Thanks Amr Hesham

https://user-images.githubusercontent.com/101287880/164944362-70286960-a9fb-4d65-ba84-b5152d0105a7.mp4

See in video my bro and fixed bug lol

AmrDeveloper commented 2 years ago

@Arashvscode Hello, thanks for the report

the editor moves from LTR to RTL when you type LTR language like Arabic or Persian, I will check it and support them

Thanks Amr Hesham

Arashvscode commented 2 years ago

Tnks❤

AmrDeveloper commented 2 years ago

Tnks❤

@Arashvscode this attribute can solve your problem and make it easy to mix RLT & LRT languages

android:textDirection="firstStrong"

mix ar

Arashvscode commented 2 years ago

It gives me a compilation error. Can you update the library and I get the files?

AmrDeveloper commented 2 years ago

@Arashvscode Please check the example app code here

https://github.com/AmrDeveloper/CodeView/blob/9f8efa6d6011e40009bb09417518792ba3d26dc4/app/src/main/res/layout/activity_main.xml#L18

It is successfully built and work without any errors