Open
Description
AppIntro Version: 6.0.0
Device/Android Version:
- Honor 9 / Android 9
- Emulated Pixel 2 / Android 10
Issue details:
I'm trying to use Custom Font for title and desc of AppIntro Slides I have added them as described in the readme and it works fine except that when my app open it take some time to load them so i have the default font first and then it change.
I launch my main activity and check if it's first time running (with SharedPreferences) if it is i start a new AppIntro activity where i have added my slide etc...
Code Snippet:
//Intro class
public class RmpIntroduction extends AppIntro {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setIndicatorEnabled(true);
setProgressIndicator();
setSystemBackButtonLocked(true);
setSkipButtonEnabled(false);
setWizardMode(true);
setIndicatorColor(ContextCompat.getColor(this, R.color.orange), ContextCompat.getColor(this, R.color.orangePastel));
setColorTransitionsEnabled(true);
addSlide(AppIntroFragment.newInstance(
getString(R.string.map),
getString(R.string.map_introduction),
R.drawable.city_map_on_phone_expanded,
ContextCompat.getColor(this, R.color.bluePastel),
ContextCompat.getColor(this, R.color.blackLight),
ContextCompat.getColor(this, R.color.blackLight),
R.font.coyote_semibold,
R.font.coyote_semibold
));
}
}
//Intro activity start
public class MainActivity extends AppCompatActivit{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
setContentView(R.layout.activity_main);
if (AppUtils.firstAppOpen(this)) {
//Show introductionF<
startActivityForResult(new Intent(this, RmpIntroduction.class), RmpIntroduction.REQUEST_CODE);
}
}
}
[Video of the issue] (https://youtu.be/wR9qPXpPbG0)
My main activity load 4 fragment and i have a Google map loading in the first one. Confirm me if this can impact the font loading ?
Thanks for the great library we love it ;)