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

Transparent background when only one slide is used #133

Open
makcakaya opened this issue Nov 21, 2017 · 3 comments
Open

Transparent background when only one slide is used #133

makcakaya opened this issue Nov 21, 2017 · 3 comments

Comments

@makcakaya
Copy link

I am using v0.0.5 of the library. After showing a splash screen, I jump to the intro and show a few slides. If I show a single slide, the background color is transparent. Is this a bug or a feature?

How to revert and make it show the background that I set in the code?

See the attached video here.

Activity:

package com.markarar.markarar.activities;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.markarar.markarar.R;

import agency.tango.materialintroscreen.MaterialIntroActivity;
import agency.tango.materialintroscreen.SlideFragmentBuilder;

public class IntroActivity extends MaterialIntroActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // First slide
        addSlide(new SlideFragmentBuilder()
                .backgroundColor(R.color.colorSecondary)
                .buttonsColor(R.color.colorAccent)
                .image(R.drawable.logo_256px_transparent)
                .title(getString(R.string.intro_welcome_title))
                .description(getString(R.string.intro_welcome_description))
                .build());

        // Second slide
/*        addSlide(new SlideFragmentBuilder()
                .backgroundColor(R.color.colorSecondary)
                .buttonsColor(R.color.colorAccent)
                .image(R.drawable.logo_256px_transparent)
                .title(getString(R.string.intro_welcome_title))
                .description(getString(R.string.intro_welcome_description))
                .build());*/
    }
}

Manifest:

  <activity
            android:name=".activities.IntroActivity"
            android:theme="@style/Theme.Intro" />

@bezmian
Copy link
Contributor

bezmian commented Nov 21, 2017

Hi! Thank you for video. It is a bug, but it is fixed in 0.0.6 version which we will release as soon as possible.

@makcakaya
Copy link
Author

Thanks for the lightning speed answer. Waiting for the new release.

@iksena
Copy link

iksena commented Apr 15, 2018

I'm still getting this issue, is there an alternative to solve this? instead of waiting for new release? thanks

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

No branches or pull requests

3 participants