Skip to content

How can i switch the default layout type, i want switch to QWERTZ #10

Answered by xevifar
Gulshank61 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Gulshank61 ,

You can change the layout at the startup of the library. To reload it, just close the previous instance and create a new one, following this:

FleksyLib(
    appContext,
    LocalFileProvider(appContext).languageFile,
    LibraryConfiguration(
        LibraryConfiguration.LicenseConfiguration(
            licenseKey = BuildConfig.SDK_LICENSE_KEY,
            licenseSecret = BuildConfig.SDK_LICENSE_SECRET
        ),
        LibraryConfiguration.LanguageConfiguration(
            //Specify one of the layouts from the LanguageFile.
            layoutType = LayoutType.Embedded(layout = "QWERTZ")  
        )
    )
)

Would that work for you ?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Gulshank61
Comment options

@xevifar
Comment options

Answer selected by Gulshank61
@Gulshank61
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants