Jump to content

Recommended Posts

  • Administrators
Posted

Hello,

What do you mean about Project?

FGX Native supports RTL in 2 ways:

  1. FlexBox Layout. In this case if you would like to mirrow component alignment, you should use TfgForm.LayoutDirection.
  2. Text. If you run application on device with RTL locale, it automatically will use text alignment.

Thank you

  • 1 year later...
Posted

for making an activity that all direction of its components is RTL, this change must be applied in project

1. in application tag in AndroidManifest.xml file in Templates folder, add this

android:supportsRtl="true"

2. in main form creation event add this code

  TfgAndroidHelper.Activity.getWindow().getDecorView()
    .setLayoutDirection(TJView.LAYOUT_DIRECTION_RTL);

now your layout direction in android activity is RTL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...