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

XML content loader #14

Open
ZoogieZork opened this issue May 14, 2011 · 0 comments
Open

XML content loader #14

ZoogieZork opened this issue May 14, 2011 · 0 comments

Comments

@ZoogieZork
Copy link
Owner

Defining the slides in a giant enum with a confusing dose of reflection didn't quite work out the way I'd hoped.

It'll be easier to define content in an XML resource that can also reference other resources directly.

ZoogieZork added a commit that referenced this issue Jun 13, 2011
The Presentation class no longer takes an array of slides in the constructor;
instead, there's a setSlides() method which will be invoked either by
subclasses or the inflater.

MainActivity loads the xml/main_presentation resource instead of overriding
the xml/presentation resource -- this is temporary to make it easier to
switch between the default (sample) presentation and the regular presentation.

Issue #14.
ZoogieZork added a commit that referenced this issue Jun 13, 2011
Since Presentation initializes slides via setSlides(), it's possible for the
presentation to have no slides (e.g. if the presentation.xml is empty).
To avoid the odd crash, we use a default slide that explains the situation
to the user / developer.

Issue #14.
ZoogieZork added a commit that referenced this issue Jun 13, 2011
This is the package search path for slide elements.
Multiple packages can be specified (separated by whitespace).

Issue #14.
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

1 participant