pscholl / glass_snippets Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
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.
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?
Android ListView has smoothScrollToPosition which has a much better scrolling effect, more like the "ok glass" menu.
To efficiently enable a detection similar to the one used in the main menu of glass, create a second implementation that caches a. hotwordVoiceConfig and b. phrasesVoiceConfig.
The current implementation targets mainly always on use cases
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.