The recent preparation of a set of articles on UI effects is a summary of this time, mainly about the UI effect design module in Android development. It is divided into several pages:
Android XML Drawing (Shape, Layer, Selector)
Android Canvas Drawing (canvas, poin
This software sets the user's first access to the page load wait function, which is a waiting page lasting 1 or 2 seconds for the user, while the user is waiting, the program performs some necessary checks and data preparation work. The loading page is divided into the UI and function sections. The first step is the implementation of the UI from the table and in, in addition to functionality, it is also ver
There are often problems with Android projects that update the UI after a time-consuming operation in a child thread, and then summarize the updated methods for some of the projects that you have experienced:Reference:Android sub-threadingMethod One: With handler1, the main thread defined handler:Handler Mhandler = new Handler () {@Overridepublic void Handlemessage (Message msg) {super.handlemessage (msg);
The Android UI is single-threaded, so it must be run asynchronously for long-running programs. AsyncTask is a convenient tool for implementing asynchronous tasks. It completely hides a lot of detailed information about the threads running the task. AsyncTask: in a very simple application, a game engine needs to be initialized. When loading content, some plug-in Advertisement images are displayed. Assume tha
Let me talk about some other things. I hope you will be able to become a candidate for the 2013 blog star. I look forward to your vote. Thank you.
Next to the question, we will refer to how to use HierarchyViewer and HierarchyViewer.
Why do I use HierarchyViewer?
Unreasonable layout slows down the UI performance of our application. HierarchyViewer can visually obtain information about the UI layout design
Developers can declare the UI in the following two ways: either through an. xml file (without a preview interface) or a. axml file (with a preview interface), or with C # code.When you describe the user interface (UI) with a. axml file, the designer is divided into the Design view and the source view. The advantage of this approach is that you can separate the code of performance from the control behavior a
[Android UI] case 01 Cover Flow3D (Gallery + BaseAdapter) and 01coverflow3d
This example describes how to implement CoverFlow3D. First, we will introduce Cover Flow. Cover Flow is Apple's first method of displaying the covers of multiple songs on a 3D interface.
This case is taken from network routing. Finally, although the effects of different machines are different, the results are indeed excellent.[For m
1. Guidelines for drawing the UICan contributors Jane, can use a control to fix things, do not use multiple controls.Can be pumped, you can extract the properties of reuse or layout to extract.3. Resources in Android projects, resources are placed under the Res folder, resources can be pictures, XML, etc., and different types of resources are placed in differentFile, as shown in650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/17/wKiom1XFP
(Toggle_immersive_mode)Immersive mode doesn ' t do anything without at least one of the previous flagsEnabled. When enabled, it allows the user to swipe the status and/or nav barsOff-screen. When the user swipes the bars back onto the screen, the flags is clearedand immersive mode is automatically disabled.if (mimmersivemodecheckbox.ischecked ()) {Newuioptions |= view.system_ui_flag_immersive;} else {Newuioptions = ~view.system_ui_flag_immersive;}//End_include (Toggle_immersive_mode)Begin_inclu
May 15 Nubia UI 2.0 Open test (based on Android 4.4), the first batch of models: Z5, Z5 Mini, z5s Mini. The new Nubia UI 2.0, flat, minimalist UI design style brings a light sharp, elegant and stylish visual feel. The flat-face visual style runs through the entire new Nubia UI
/app_name " > intent-filter> action android:name="Android.intent.action.MAIN" /> category android:name="Android.intent.category.LAUNCHER" /> intent-filter> activity> activity android:name=". Mainactivity "/> Application>manifest>The first time I made a mistake when I was storing a picture in a remote, I encountered a very interesting question:Later found that this error is due to use intent transfer pict
Res/values/themes.xml file,The above is the new style, named: CustomactionbarthemeWhere used to @drawable/actionbar_background, specify color; new drawable folder under Res directoryFor apps that use Android 2.1, you only need to replace the @android: Style/theme.holo.light.darkactionbar with @style/ Theme.AppCompat.Light.DarkActionBar @android: Style/widget.hol
Android UI access is not locked, so accessing the UI on multiple threads is not secure. So android specifies that the UI can only be accessed in the UI thread.But is there an extreme situation? Makes it possible for us to access t
Content of this article
Environment
Demonstrate a UI that mimics the QQ space style
Although this UI is a bit different from the current QQ space, but also can learn a lot of things.
Download Demo Environment
Windows 7 64-bit
Eclipse ADT v22.6.2,android 4.4.2 (API 19)
SAMSUNG gt-i9008l,android
The Android platform provides a large number of UI artifacts that you can build together to present a complex and useful picture of the user. However, applications sometimes require advanced visual components. To meet this requirement and to achieve it efficiently, you can combine multiple standard artifacts into a single, reusable component.
For example, you can create a reusable component that contains a
Everyone knows that because of performance requirements, Android requires that the UI be updated only in the UI thread, and there are roughly 4 ways to update the UI in other threads, using four different ways to update a textview. 1. Use the handler message passing mechanism
Package com.example.runonuithr
;Import Android. Support.V4.app.fragmentactivity; Public class mainactivity extends fragmentactivity { @Override Public void onCreate(Bundle savedinstancestate) { Super.onCreate(savedinstancestate); Setcontentview(R.Layout.News_articles); }}If you use the V7 AppCompat Library, your activity should inherit ActionBarActivity , it is FragmentActivity a subclass (for more information, see Add Action Bar).Note: When you add fragment
How Android displays custom fonts in the idea Eclipse UI Editor Preview
The font to be displayed will be copied to. Android-sdk/platforms/android-[version]/data/fonts folder below For example: Fontawesome-regular.ttf
Under Android-sdk/platforms/
In the previous article we introduced the basic use of dialog, "Android UI Design" dialog dialog box (a) Continue to introduce today, Nonsense said, today mainly achieve progressdialog and transparent dialog two kinds of effects, Finally, let's introduce a dialog animated open Source Library on GitHub that contains a variety of animation effects, as follows:First, ProgressDialog basic use1.ProgressDialog Ke
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.