Code Monkey home page Code Monkey logo

glass_snippets's People

Contributors

j796160836 avatar longzheng avatar pscholl avatar ramonwirsch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

glass_snippets's Issues

ScrollView doesn't unregister sensor

Hi!

I am using your HeadScrollView inside a custom Card of CardScrollView. It's work fine but when i do swipe back to return to the main Timeline, onSensorChanged continues to work. I put a Log.d inside.

I also have problems when i have a CardScrollView. One card has HeadScrollView. When i swpie left to go to another card, It is called "deactivate" so Sensor stops. However if one card open another activity and i swipe back to return to the CardScrollView, onVisibilityChanged it's called with visibility = VISIBLE so sensor is register but HeadScrollView it is not VISIBLE.

Sorry for my bad english. If you don't understand me, Ask me and i'll try to explain better.

Multiple dex files define Lcom/google/common/annotations/Beta

When I try to use the GlassVoice-xe22.jar library at the same time as guava I am getting the following error:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/common/annotations/Beta;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)

I think this might be that GlassVoice is using guava as well and I'm using a different version? Any idea which version?

When using the library in a CardScrollView null pointer exception

When using the library inside a CardScrollView, the parent is probably at some time (while swiping furiously) already recycled.

Changing
((View) getParent()).invalidate();
into
if(getParent() != null) ((View) getParent()).invalidate();

(HeadImageView.java last line of onSensorChanged(SensorEvent event))

Fixes this problem

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.