When it comes to drop-down refresh control, there are a lot of online versions, and many software also have a drop-down refresh function. There is a call Xlistview, I see others used, have not seen is how to achieve, see the name is estimated to
The example of this article is to share the Android two level horizontal menu implementation process. The effect is as above:
This horizontal level two menu is applied to many apps. The effect is still very beautiful. It is also a project needs,
This article is for the Andbase framework to learn the first note, want to understand the andbase framework of friends can read this article, we learn together.
1. Use Andbase to implement the multi-function title bar
The Andbase framework
Understand the links between the various files of Android programming and how to use them, and how to understand the structure of the activity file can be seen in the following diagram:
The code is edited in the. java file in Src, and there is a
The project needs to add a grid line to the GridView, and the background of the GridView is a complete picture, as shown in the figure:
The common methods are:
1, change the background color of the GridView2. Set the interval of the GridView
This article mainly introduced the implicit intent matching target component's rule, if has the narration not clear or the inaccurate place hoped that everybody pointed out, thanks everybody:
1. Intent Introduction
Intent is used to open another
Inherit tabactivity and lay out the activityfirst look at the final effect chart:
Look at the code structure again:
Which black.gif as the name suggests is a black background picture, Grey.gif is a gray background picture
Then go directly to
This example describes the way Android dynamically adds settings and controls. Share to everyone for your reference, specific as follows:
Sometimes we will be on the code side, dynamically setting, adding layouts and controls. Below we look at how
I am here simply with two ListView to achieve, first on the effect of the picture. More coarse. A custom space is reserved.
Ideas:
From the above figure should be able to see out. is the top and bottom two ListView. Click on the ltem below. will
An example of this article is the method of using intent to pass objects in Android programming. Share to everyone for your reference, specific as follows:
In the previous article, we introduced the use of intent, such as starting activities,
In Android applications, multiple-screen sliding is a very common style, not using Viewpager code implementation will be very long, if the use of Viewpager, the code will be much shorter, But the use of Viewpager also has drawbacks: need to import
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
This example for you to share the Android activity recovery and Operation timeout processing for your reference, the specific content as follows
1. Recovery of activity
Handling for multiple activity exits
Key code:
1), New Activity management
The example in this article describes how Android implements TCP client reception data. Share to everyone for your reference, specific as follows:
Used with log4net to receive debugging information. Therefore, this client only receives string data
First, if you want to use fragment in android3.0 and the following versions, you must quote Android-support-v4.jar this packageThen you write the activity can no longer inherit from the activity class, but to inherit
Define alternative Styles define alternative styleslet your app run on a device that supports it using the material design theme, and you can run earlier topics on earlier versions of the device:1. Define a theme in Res/values/styles.xml to inherit
callback function
Like activities, fragments has their own life cycle. Understanding the lifecycle of fragments allows you to save instances of them when they are destroyed so that they can revert to their previous state when they are created again.
This example describes the Telephonymanager usage in Android. Share to everyone for your reference, specific as follows:
First, overview:
The Telephonymanager class mainly provides a series of get methods for accessing state and information
The example in this article tells you that the Android ScrollView can only add one child control problem-solving method. Share to everyone for your reference, specific as follows:
There's a section of code here
"
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service