Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

support android xml binary resource #34

Open
wjtxyz opened this issue Sep 25, 2020 · 1 comment
Open

support android xml binary resource #34

wjtxyz opened this issue Sep 25, 2020 · 1 comment

Comments

@wjtxyz
Copy link

wjtxyz commented Sep 25, 2020

Android compile xml file resource to binary to reduce size and improve performance

GsonXml can add static method, so GsonXml avoid to call XmlPullParser::setInput to prepare the input data

public <T> T fromXml(final XmlPullParser parser, final Class<T> classOfT){
    ................................
}

user can call this method like below code
gsonXml.fromXml(getContext().getResources().getXml(R.xml.config), clazz)

@wjtxyz
Copy link
Author

wjtxyz commented Sep 25, 2020

upload to my fork

wjtxyz@7bd3b1d

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

No branches or pull requests

1 participant