Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title and Description not showing #104

Closed
cyanlabsid opened this issue Jul 25, 2016 · 5 comments
Closed

Title and Description not showing #104

cyanlabsid opened this issue Jul 25, 2016 · 5 comments

Comments

@cyanlabsid
Copy link

cyanlabsid commented Jul 25, 2016

Everything in this library goes fine but why the title and description not showing although I have follow the tutorial

addSlide(new SimpleSlide.Builder()
                .title(R.string.choose_product)
                .description(R.string.create)
                .image(R.drawable.ic_logo_white)
                .background(R.color.colorPrimary)
                .backgroundDark(R.color.transparent)
                .build());

but the result just like this
screenshot_2016-07-25-16-36-19-344

can you tell me how to fix this?

@heinrichreimer
Copy link
Owner

Well I guess there might be a problem because of this line:

. backgroundDark(R.color.transparent)

You need to understand that the dark background is used to calculate the text color, status bar background and indicator dots color. Setting it transparent is not what you should do. Please try to set backgroundDark() to the darker orange from the status bar.
Please message me back again if that fixes your problem.

@heinrichreimer
Copy link
Owner

@cyanlabsid did that work for you?

@rayliverified
Copy link

rayliverified commented Aug 3, 2016

I seem to have this issue as well. I am using the code from the sample project:

        addSlide(new SimpleSlide.Builder()
                .title(R.string.slide1Title)
                .description(R.string.slide1Description)
                .image(R.drawable.art_material_metaphor)
                .background(R.color.color_material_metaphor)
                .backgroundDark(R.color.color_dark_material_metaphor)
                .build());

untitled20160803140503

@rayliverified
Copy link

rayliverified commented Aug 3, 2016

As I suspected, this is a noob issue (I'm so stupid). The good old image pushing elements off screen issue. I was using the sample images and they were too big. After I resize them a bit/put them in a hdpi folder, everything was jimmy!

@cyanlabsid your image might be too big 😉

@heinrichreimer
Copy link
Owner

Well I guess @searchy2 is right. You might use SimpleSlide.Builder.scrollable(true) to make the intro content scrollable if the content is too big.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants