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

support android xml binary resource #34

@wjtxyz

Description

@wjtxyz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions