Giter VIP home page Giter VIP logo

jointelementinspector's People

Contributors

trytocode avatar

Watchers

 avatar

jointelementinspector's Issues

pass Data between main and open file activity

1 start new intent from open file activity and sent intent flag as FLAG_ACTIVITY_SINGLE_TOP
Updata: sent flag as FLAG_ACTIVITY_CLEAR_TOP and it works.

2 using onActivityResult in main, setResult in open file
issue: pass data to viewpager cause problem, later check it out

andorid data storage

1 make all kind of data private, which been created (capture photos) or modified (write xml) from this app, and data should deleted when user uninstall app

2 xml file shoul also come from internal storage

3 so some aspect should be redesigned to fill the goals

Recyclerview Performance

1 recyclerView.setHasFixedSize(true), this do improve the profermance, only for the case that all item of view has fixed width and height.

2 recyclerView.setItemViewCacheSize(20);
recyclerView.setDrawingCacheEnabled(true);
recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
Not sure about this

3 set OnClickListener once in onCreateViewHolder() and call through an interface a listener outside of the Adapter, passing the clicked view. don't create extra objects all the time. Already done

4 by updateing adapter, consider do not collect all items all the time, take advantage of the following methods may help, not tests
adapter.notifyItemRangeInserted(rangeStart, rangeEnd)
adapter.setHasStableIds(true);
adapter.notifyItemRemoved(position);
adapter.notifyItemChanged(position);
adapter.notifyItemInserted(position);
this requires that data which to be served has unique ids.

User permission check

1 permission to access camera
2 permission to access external storage
3 and more if needed

onClickListener in onBindViewHolder

1 Bad practice: create onClickListener in onBindViewHolder, listener would bind to ervery object which been loaded here. each item in a recycler can be bound lots of times
bad for performace and GC

2 uses interface customItemClickListener for better performace and bind it in viewHolder

3 bind listener on Viewholder, make it possiable so that card view could perform onclick

BUG Visual viewer

after opening file, load stl and add weld points do not work always

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.