Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are options for android UI optimization?

I have an app which has a tons of graphic elements, I tried to eliminate layout complexity by using RelativeLayout and wondering what else can be done to speed up UI based on standard layout system with a lot of graphic elements?

like image 721
bogmix Avatar asked Feb 06 '13 15:02

bogmix


People also ask

How can I improve UI performance?

App Launch TimeDon't instantiate too many views on the first screen that appear to the user. Don't inflate parts of the UI that you don't need during the initial launch. Don't run expensive content decoding like bitmaps. Use Firebase Performance Monitoring or Android Vitals to monitor and optimize your app launch time.

How are Android layouts optimized?

Use compound drawables - A LinearLayout which contains an ImageView and a TextView can be more efficiently handled as a compound drawable. Merge root frame - If a FrameLayout is the root of a layout and does not provide background or padding etc, it can be replaced with a merge tag which is slightly more efficient.

What is the best way to increase layout display speed?

Revise your layout Because the layout performance above slows down due to a nested LinearLayout , the performance might improve by flattening the layout—make the layout shallow and wide, rather than narrow and deep. A RelativeLayout as the root node allows for such layouts.


2 Answers

You can check blog by Romain Guy http://www.curious-creature.org/category/android/, he writes often on performance topic. Especially take a look at this article

like image 174
Roman Avatar answered Sep 23 '22 21:09

Roman


There is a guide on android developers website for UI design and Performace :

Android UI Performance

Have fun

like image 29
Mr.Me Avatar answered Sep 23 '22 21:09

Mr.Me