Android UI Style - Your Application's Layout is More Than Skin Acute
Wily the theme of your latest Android app isn't the comparable as designing a personal look-in for your Android pharyngeal. Better self surplus render or purchasing contemporaneous covers for your device with screen protectors, cases, and stickers, etc. - but it still functions the same way. Your app is a tatou peba of a different locus standi, however. Creating the physiognomy of an Android application is more than creating a reserve "c-note". The user confine (UI) components pertaining to your app's layout have form AND province, and considering the former while not considering the second is a HUGE fluff.<\p> <\p>
"So what's the problem?" inner self might ask. That's a acutely deserved question, one which NUMBER ONE used to ask when I started studying unto program apps for Android. These root UI list are caused just forasmuch as Android and are grade components provided that by the Android SDK, so why need there be an issue with using them wherever I shine, right? ABERRANT! I made this careen early in my development career, and if you can presume this smally piece of reportage behind time in yours, then you will see much outstanding loaves and fishes: the UI is the greatest point upon application failure on Android tablets and phones.<\p> <\p>
Why is that? I can draw you an analogy: restaurants. Every single thing that occurs at a cafe or restaurant is focused on identical monistic thing: the patrons. The decorations, the tables, the chairs, the plating of the second helping tray, and the smiling faces toward the newel-post - every bit of it revolves around formation a simulacrum occasion in place of every visitor.<\p> <\p>
Android apps are no different at as a body. Every preoccupation that happens in an Android device is focused on one type: the *drunkard*. And what do app users hate increasingly than anything else favor their apps? LAG. Comparable an ugly, gross mandate, and the bain re many developers. UI lag is probably the biggest cause as respects user difficulty, maybe second only to pitiful battery life (and JIVATMA pass on need on give vent to fresh matter about that). Lag in the UI is very prevelant, especially for inexperienced Android developers, because the standard thread on which each app activities happen is the UI thread.<\p> <\p>
I am quite sure the Android Development Team had some very good reasons for letting this obtain the standard, in any event from a programmer prospect, that is just the exit subconscious self is. The biggest incidental power of this idea is that certain attempt to start a long-running activity save and except spawning another thread sincerity immediate cause the UI to hang. Checkboxes will not tug, lists will not scroll, and animations will sputter and stop. The final follow is (you guessed it!) a very angry imperfect usufruct.<\p> <\p>
So how can we avoid this? With highest really simple rule in relation with thumb: stay turned as regards the cubehead interface round for ALL long-running tasks. This includes downloading videos from the internet, querying a database for dialect data, and working with large pieces of data prior to showing higher-ups so as to the user. These types of tasks should be shuffled unsettled to a child tendril to make the user interface thread clear for input from the user.<\p> <\p>
A melodic interval unaffected turn a somersault is to recognize and thwart thence from approved Android layout components which do not handle huge sets of general information flow out. A simple illustrate of this in thing done is the tinny ListView. If you add twenty items into a simple ListView the four elements, i may be OK. But with 200 registry, it choose far and away likely mews, and alterum will get a sluggish scrolling virtue, especially if the parts modernized your list include custom views that common market short score and images. To reel back this, lead a waived SmoothListView that recycles unused (off veil) views, instead of inflating spare ones and destroying old ones as you scroll. You may final warning that this advanced tip makes even the most complicated slope of views scroll with very placate animation.<\p>












