Android development artifacts (including various UI effects and instances) and Android ui are recommended.
There are many open-source Android class libraries on the Internet that are very useful. They are good learning objects for kids shoes or old birds who just learned an
Android Optimization-UI optimization (1), android ui OptimizationOptimize layout level 1. Avoid layout mosaic depth (as shown below)
We can remove the id as follows:main_ll_duoyuThe LinearLayout of can also achieve the desired effect (the effect is as follows)
2. Use tools to view the Layout
Tool Path
Sdk \
Android Optimization-UI optimization (2), android ui OptimizationUseincludeTag reuse Layout-1.includeFunctions of tags
What should I do if I use this layout on many interfaces? If every page is written, the code is too redundant and the maintenance difficulty increases.
I will use this layout aboveincludeLabe
Android form UI and event processing of corresponding controls, android form ui controls1. ToastToast is a lightweight reminder tool that displays a line of text to prompt responses to user operations. Usage: Toast. makeText (context, text, time ). show (); context: context, text: display text content, time: Display du
Android asynchronous mechanism 1: Use Thread + Handler to implement non-UI Thread update UI interface, androidui
Overview: Every Android application runs in a dalvik virtual machine process. When a process starts, a main thread (MainThread) is started. The main thread is responsible for processing
The most comprehensive android gui templates and line charts in 2014 are available for free. androidgui
It has been a long time since the last GUI template was shared. The design trend is constantly changing during this period. Google has released the latest Android L and the new interface design, and the UI Designer i
Android: an efficient UI is a popular UI (2). androidui
While the boss is not secretly leaving work early tonight, he has time to continue to talk about the pain of uidesign. This is also an example of the previous article "Android: an efficient UI is a great
Android updates the UI and androidui in non-UI threads
When updating the UI (Program Interface) in a non-UI thread, the following exception occurs:
So how can we refine the UI in a non-UI
I. Problem Description
In general, when we play a video through a mobile player, the playback event is triggered through buttons on the UI. Surfaceview, the control for displaying video streams, refreshes the playback screen of each frame following the playback progress.
However, sometimes ...... We need to use the UI thread to replace the button event to control the video playback effect. What should we do
extraordinary, and efficient UI interface is a very grey and awesome interface design.IntroducedIn Android applications, writing an interface in hard-coded ways is not a recommended approach. Of course, the hard-coded interface is more efficient and flexible than the XML-based soft-coded interface, but it's not easy to maintain, and the intricacies of the code will make the program bury the Thunder, and th
In Android development, non-UI threads cannot operate controls in the UI thread, that is, the UI is non-thread-safe.
As I said in the previous article:
It is non-UI secure, that is, it does not accept modification requests from non-UI
Android UI-re-paint EditText and implement gradient of Button, ui-edittext
In this article, we implement a common re-drawing of EditText and adding gradient to buttons or windows.
Because EditText is inherited from TextView, you can re-paint EditText. When re-painting, you only need to inherit EditText and override its onDraw () method.
When adding gradient to a
Article Description: Google Android UI design tips: A new UI design pattern.
This series of articles, originally an Android UI design slide from the official Android developer blog, was translated into 5 translations b
Android: an efficient UI is a popular UI (1)
Opening
Android is an operating system running on mobile terminals. The biggest difference with traditional PCs is the shortage of resources on mobile terminals, it should be described as "very" to be reliable. Therefore, it is often the case that some software is terminate
Android still successfully updated the UI on non-UI threads for in-depth analysis. androidui
"View can only be updated in the main UI thread".
Are you familiar with this sentence?
Come on, buddy. Let's look at the following example.
@ Override protected void onCreate (Bundle savedInstanceState) {super. onCreate (savedI
05 March 2009
Http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html
Window backgrounds UI speed
Some Android applications require to squeeze every bit of performance out of the UI toolkit and there are always ways to do so. In this article, you wil
Android: an efficient UI is a popular UI (2)
In the previous blog, I explained two methods to optimize the UI design. The first one is to use as few components as possible to implement the layout function, the second is to use the
It's almost four years old and running the old an
Android updates the UI in a non-UI thread
When updating the UI (Program Interface) in a non-UI thread, the following exception occurs:
So how can we refine the UI in a non-UI thread?
T
The exception that appears when you update the UI (Program interface) in a non-UI thread is as follows:So how do you get a finer UI in a non-UI thread?There are many ways to do this, and here are two main types:The first type: Add looper.prepare () after the line of code that needs to update the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.