Today to bring you a right to slide the effect of destruction activity, activtiy with the movement of the fingers moved, the effect is still relatively rare in Android applications, in iOS is more common, such as "NetEase News", "Food Jay", "Taobao"
Service side:
The first is to write a aidl file, note that Aidl only supports methods, cannot define static members, and methods do not have modifiers such as public; the Aidl Run method has any type of parameter and return value, in the Java type,
In Android, each interface is an activity, and switching interfaces is an instantiation of several different operations. The startup mode of activity in Android determines how the activity starts and runs.
Activity has four startup modes:
1.
Main ideas:Design a view into multi-layer: Background layer, including winning information, etc.;Covering layer, used for scraping prizes, using a bitmap to associate a canvasOn the bitmap, use its Canvas.drawpath API to handle gesture sliding
This article is an example of how Android creates a clickable button implementation. Share to everyone for your reference, specific as follows:
Feel the need to learn about the development of mobile phone knowledge, whether for future work needs or
This article will show you how to take a screenshot of the photo.
First look at the effect chart:
The screenshot is a little bit special, but now the Android smartphone's camera is millions of pixels and the pictures are very large. Therefore,
XmlIf you have such an XML-formatted data:
Here we write a class to read, which is to display the contents of the resource file (an XML) on the EditView after clicking the button, which is used in the Xmlresourceparser
Developing Android applications, with more and more functions, the startup speed is getting slower. Is there a way to get your application started faster?
The method is to come out of the person. Let's talk about my implementation:
1 Initialize
First, the application of the start
Startup mode
In general, there are two types of start-up methods used in Android: Cold start and hot start.
1, cold start: When the application is started, the background does not have the application
The table layout model manages child controls in rows and columns, with each behavior a TableRow object, or, of course, a View object. TableRow can add child controls, one for each column.
Tablelayout Properties:
android:collapsecolumns: Hide the
First, the widget design stepsneed to modify three XML, one class:
1. The first XML is the layout XML file (such as: Main.xml), which is the widget. In general, if you use this widget to display the time, then just declare a textview in this layout
1. Overview
Previously wrote an android high imitation QQ5.0 sideslip menu effect custom control to attack, Coincides with QQ5.2 and added a right menu, just look at the next drawerlayout, on the one hand, I am more interested in the official
Implementation of the idea is actually very simple, is a custom linearlayout, and TextView can loop vertical scrolling, and entries can be clicked, display area display up to 2 entries, and the alternating properties of the vertical movement of
Androidstudio SVN Installation and usage of the other IDE I used to have a big difference, feel special trouble, online information is very small, seemingly now Git more popular, before the use of GitHub but he can only be open source project free,
This example for you to share the Android implementation of the student management system of key code for your reference, the specific content as follows
Local Effect Chart:
Implementation code:
1, layout
To use gradients with TextView, we have to understand the usage of lineargradient (linear gradients).
Parameter interpretation of LinearGradient
LinearGradient also known as linear rendering, the role of lineargradient is to achieve a certain area
The wave waves are all triangular, the curve is a positive cosine curve, but Android does not provide an API to draw the positive cosine curve, fortunately, the path class has a method to draw Bezier curve Quadto, plotted out of the 2-order Bezier
The example in this article describes how Android implements a border-drawing method for tablelayou. Share to everyone for your reference, specific as follows:
The effect is as follows:
idea : Use share as background display border
Steps :
1.
As we all know, the Android UI is thread-safe, and if you want to do UI operations on the Chengri, you'll need to take advantage of the Android asynchronous message processing mechanism. I have also written an article from the source level analysis
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.