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
In just a few years the Android platform has formed a large and active developer community. Many community-developed projects are already at maturity and can even be used in commercial software production without worrying about quality issues.This article is compiled from Androiduipatterns to share some free, open source Android UI libraries and component resourc
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
Objective
Let me take a look at how Iván Carballo and his team used espresso, Mockito and Dagger 2 to write 250 UI tests, and it took only three minutes to run successfully.
In this article, we'll explore how to use Mockito (translator Note: Mockito is a unit test framework written in Java), Dagger 2 to create fast and reliable Android UI tests. This article is
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
In this paper, the UI main thread and child threads in Android are deeply analyzed. Share to everyone for your reference. Specifically as follows:
When an Android program starts running, a process is started separately. By default, all activity or service (service and activity in this program is just two of the components provided by
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 Development is currently one of the hottest mobile development technologies, and with the continuous effort of developers and the progress of the Android community, Android Development technology is maturing, and of course, there are many good open source UI projects emerging in the
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
This section shows you how to send data to the UI line Chengri objects in a task that allows you to work in a background thread and then display the results on the UI thread.
Defines a handler in the UI thread
Handler is part of the Android system's threading management framework. A handler object receives the messag
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
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
=NewMessage ();101 //mark the MSG (similar to--key--)102Msg.what = 0x123;103 //Create a bundle and store the data104Bundle bundle =NewBundle (); theBundle.putstring ("name", name);106Bundle.putstring ("Phone", phone);107 //Add data to msg108 Msg.setdata (bundle);109 //send a message to a new thread the updataThread.mhandler.sendMessage (msg);111 the //accept that the message returned by the child thread is the same as the usage of the child thread113Mai
Construct flexible UI Previous lesson Next lesson this lesson teaches you
Add Fragment to Activity at run time
Replace Fragment
You also need to read
Fragments
supports tablet and handheld devices
Try the Download sampleFragmentbasics.zipWhen you design your app to support a wide range of screen sizes, you can reuse your fragment in different layout configurations to optimize the user experience based on the availab
The true logic of Android apps
App UI Component Hierarchy
Most of the UI components in Android are stored in Android.widget packages and their children, android.view packages, and their child packages, all of which are inherited from The View class , The view class also has an important subclass of ViewGroup, so it h
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
A toast was used in the test service to print the log. Prompt cannot call Looper.prepare () After adding, the code executes normally. Looper.prepare (); Toast.maketext (Getapplicationcontext (), "Services Thread", Toast.length_long). Show () Looper.loop (); But then there was another toast, and then there was an error stating that each thread could have only one looper caused by:java.lang.RuntimeException:Only one Looper may be created per thread To view the data, prepared will create a looper
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.