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

Use in Fragment #130

Closed
rodrigordgfs opened this issue Apr 27, 2019 · 2 comments
Closed

Use in Fragment #130

rodrigordgfs opened this issue Apr 27, 2019 · 2 comments
Assignees

Comments

@rodrigordgfs
Copy link

How can I use inside a fragment?

@nrhoffmann
Copy link

Just return the about page from the onCreateView method.

    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return new AboutPage(getContext())
                .isRTL(false)
                .setDescription(getString(R.string.app_description))
                .addGroup(getString(R.string.contact_group))
                .addEmail("us@example.com", "Email")
                .addGroup(getString(R.string.application_information_group))
                .addItem(new VersionElement())
                .create();
    }

@medyo
Copy link
Owner

medyo commented May 5, 2020

Thank you @nrhoffmann for the code snippet, I just shared it on the Readme with credits

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