Performance optimisations for android applications - Multiple column grid gallery
Part 9 - It soon became clear that a single column gallery was not going to highlight any differences between the custom android performance optimisations or any of the other android performance third party image libraries that have been or will be reviewed.
For further info checkout - https://www.nigeapptuts.com/?p=227
Link for the grid gallery using glide - https://youtu.be/wd6buMEazBc
Link for the grid gallery using picasso - https://youtu.be/wRnHiEVGYyU
This was my motivation to covert the single column grid gallery to multiple columns so all of the screen would be occupied by thumbnail image pixels.
I will re-run this grid gallery using the picasso & glide image libraries at a later stage and provide the results in this description.
These tutorials are expected to be viewed in sequence starting from
Part 1 Picasso image library - https://youtu.be/8051fZyWToA
Part 2 Creating AsyncTask - https://youtu.be/Sj7T_oRMbd8
Part 3 BitmapFactory.Options inSampleSize - https://youtu.be/AxjTLMLYzcg
Part 4 Fixing concurrency - https://youtu.be/4qy9Yw6BmXU
Part 5 Memory cache - https://youtu.be/nOJuoodz3ts
Part 6 Reuse of bitmaps with inBitmap - https://youtu.be/p3ABIc_VAkc
Part 7 Glide image framework - https://youtu.be/oMiOj9j7VgE
Part 8 Picasso revisited - https://youtu.be/5h-6cSApJZI
In this tutorial we will cover:
- Removing the padding from the main layout xml file
- Creating members for the image dimensions & number of columns
- Using DisplayMetrics & WindowManager to get the width of the screen
- Calculating the thumbnail image width & height
- Programmatically creating the ImageView inside the recyclerview adapter using the thumbnail width & height from the main activity.
- Passing the programmatically created ImageView into the ViewHolder and using it to replace the ImageView from the xml file
- Passing the thumbnail image width & height through to the BitmapWorkerTask to be provided for bitmap in sampling.
The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.
Android studio (1.3.1) is the editor of choice (IDE) for this tutorial series.
API's covered
- DisplayMetrics
- getWindowManager().getDefaultDisplay().getMetrics(DisplayMetrics)
- GridLayoutManager
- ImageView
- LinearLayout.LayoutParams
This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Performance optimisations for android applications - Multiple column grid gallery», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.