Giter Club home page Giter Club logo

Comments (4)

MuntashirAkon avatar MuntashirAkon commented on September 27, 2024 1

The issue was fixed. Thanks.

from arsclib.

REAndroid avatar REAndroid commented on September 27, 2024

Your issue is a bug and will be fixed soon, but i would like to comment on your encode code

  • You need to provide your package not framework's package. encodeMaterials.setCurrentPackage(packageBlock); it will fail where going to resolve local resource id
  • EncodeMaterials is resource intensive , better to initialize once if you are going to encode multiple times

from arsclib.

MuntashirAkon avatar MuntashirAkon commented on September 27, 2024

Your issue is a bug and will be fixed soon, but i would like to comment on your encode code

Interesting fact is that it only happened with this particular case. In other cases, such as the one below, it worked as expected:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:fitsSystemWindows="false"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:animateLayoutChanges="false">
  <TextView
    android:layout_gravity="center"
    android:id="@0x7f0902c2"
    android:layout_width="?0x7f0403c0"
    android:layout_height="?0x7f0403c0"
    android:text=" ">
  </TextView>
</FrameLayout>

I do not know why it happened for android:label.

  • You need to provide your package not framework's package. encodeMaterials.setCurrentPackage(packageBlock); it will fail where going to resolve local resource id

It okay since it is a random binary XML file not tied to any particular package. I can see that in implementing this, you have assumed that an XML file would belong to a package. But in practice, this may not always be the case. This, of course, assumes that the local resources in the input file will be hexadecimal values.

  • EncodeMaterials is resource intensive , better to initialize once if you are going to encode multiple times

Thanks. I'll keep that in mind.

from arsclib.

REAndroid avatar REAndroid commented on September 27, 2024

Check this commit

from arsclib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.