jack-bradshaw / SlidingIntroScreen

An Android library designed to simplify the creation of introduction screens.
https://bintray.com/matthewtamlin/maven/SlidingIntroScreen/view
Apache License 2.0
181 stars 36 forks source link

Changing "Skip" and "Done" to arabic #11

Closed arvi closed 7 years ago

arvi commented 7 years ago

Hello,

I made an english and arabic version of the sliding intro. Any suggestion how I can set the text to arabic?

I've been tracing the settext but can't figure out how to make use of it: https://github.com/MatthewTamlin/SlidingIntroScreen/blob/master/library/src/main/java/com/matthewtamlin/sliding_intro_screen_library/core/IntroActivity.java#L419

Thanks a lot.

arvi commented 7 years ago

Nevermind, I finally figure it out :smile:

For future reference:

    IntroButton leftButton = findViewById(com.matthewtamlin.sliding_intro_screen_library.R.id.intro_activity_leftButton);
    IntroButton finalButton = findViewById(com.matthewtamlin.sliding_intro_screen_library.R.id.intro_activity_finalButton);

    leftButton.setText(getString(R.string.skip));
    finalButton.setText(getString(R.string.done));