Maps Utility Library. ⢠Marker clustering: handles the display of a large number of points. ⢠Heat maps: display a l
Péter Ekler
[email protected]
Discovering the Android API – Part 2
Discovering the Android API – Part 1
Maps Utility Library • Marker clustering: handles the display of a large number of points • Heat maps: display a large number of points as a heat map • IconGenerator: display text on your Markers • Spherical geometry: computeDistance, computeHeading, computeArea • KML: displays KML android:inflatedId="@+id/panel_import" android:layout="@layout/layout_delay_loaded" android:layout_width="match_parent" android:layout_height="wrap_content" />
ViewStub – Lightweight View • Lightweight view • No dimension • Does not draw anything • Does not participate in the layout • Cheap to inflate and cheap to leave in a view hierarchy • When is it loaded? • setVisibility(View.VISIBLE) • inflate()
ViewStub „life cycle” • Once visible/inflated ViewStub element is no longer part of the view hierarchy • ViewStub is replaced by the inflated layout • ID for the root view the android:inflatedId • android:id specified for the ViewStub is valid only until the ViewStub layout is visible/inflated
Summary
• Polyline encoding, PolyUtil • Face detection • AtomicFile • MonthDisplayHelper • Delayed Loading of Views
References • Polyline encoding, PolyUtil https://developers.google.com/maps/documentation/utilities/polylinealgorithm https://developers.google.com/maps/documentation/android-api/polygon-tutorial https://developers.google.com/maps/documentation/utilities/polylineutility https://developers.google.com/maps/documentation/android-api/utility/
• Face detection https://developers.google.com/vision/android/face-tracker-tutorial https://developers.google.com/vision/face-detection-concepts
• Atomic file operations https://developer.android.com/reference/android/support/v4/util/AtomicFile.html
• MonthDisplayHelper https://developer.android.com/reference/android/util/MonthDisplayHelper.html
• Delayed Loading of Views https://developer.android.com/training/improving-layouts/loading-ondemand.html
Thank you! GitHub: https://github.com/peekler/GDG
[email protected]