Giter Site home page Giter Site logo

Comments (6)

Cromir avatar Cromir commented on June 30, 2024

Same problem here. I copied theese 2 files into my drawable folder but nothing changed...

from horizontalvariablelistview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 30, 2024

it's because it uses reflection on the resources for some reason. Even Lint warned me that the drawable resources don't seem to be used.
the library should either use the drawables it has, or have it being optional.

however, even after fixing this error, there are other errors ...


EDIT:
ok, in order to fix the editor errors, do the following:
for "EdgeEffect.java" CTOR, use the lines:

    mEdge = res.getDrawable(R.drawable.hlv_overscroll_edge);
    mGlow = res.getDrawable(R.drawable.hlv_overscroll_glow);

instead of the code of reflections.

for "AbsHListView.java" , in setOverscrollMode, use the next condition instead of the original one:

if ( mode != OVER_SCROLL_NEVER &&!isInEditMode()) {

for "AdapterView.java" CTOR , add:

if (!isInEditMode())
    mAccessibilityManager = (AccessibilityManager) getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);

from horizontalvariablelistview.

lassic avatar lassic commented on June 30, 2024

Any chance to get this in? It'd be much nicer to be able to use in Android Studio. I can try to do what @AndroidDeveloperLB said as a pull request, but I'm not sure if/how that will get included into a release?

from horizontalvariablelistview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 30, 2024

@lassic it's not just on android-studio. eclipse has warnings and issues about it too, so i've read them and found the reasons.
i wish all people would check Lint and other Java warnings from time to time.

from horizontalvariablelistview.

lassic avatar lassic commented on June 30, 2024

@AndroidDeveloperLB I hear ya. Any chance you can make a pull request with your fixes?

from horizontalvariablelistview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on June 30, 2024

@lassic i don't know how to do it. i never did it before.

from horizontalvariablelistview.

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.