The database is the core of the Android storage solution, SQLite very lightweight in Andorid, and executes SQL statements even faster than MySQL.Sqlitedatabase is one of the core classes of operating databases in Android, using Sqlitedatabase to
Objective
Recently, when you have to do a button to set a picture as a background, but also to define their own rounded corners, the simplest way is to directly cut the fillet picture as a button on it, but if not so how to do it, look at the code:
Now there is a need in the project, the video and documents downloaded in the project are not allowed to play through other players, in training institutions such a lot of demand. To prevent someone from handing over a piece of money, copy all the
Objective
First look at the effect
What's the good? Don't worry, I'll teach you step-by-step.
Summary of the knowledge points used:
The use of 1.Canvas and pint, we use it to draw dots, lines, words
Basic usage of 2.View
In fact, to do this
1. Modify the System default dialog style (style, theme)
2. custom dialog Layout file
3. You can encapsulate a class, inherit from dialog or directly using the dialog class to achieve, in order to facilitate re-use later, we recommend that you
What is the parallax effect?
The so-called parallax effect is very common in web design and mobile applications, and we can find it in some of the main platforms, from Windows Phone to iOS and even Android. According to Wikipedia, Parallax
Prerequisite Summary:
The previous article has introduced the basic use method of Recyclerview, the original text is as follows: Android Recyclerview layout really just so simple! This article is an introduction to the deeper use of Recyclerview.
First, get the file from the Raw folder in resource and read the data (the resource file can only read and write)
Copy Code code as follows:
String res = "";
try{
InputStream in = Getresources (). Openrawresource (R.raw.bbi);
In
The Android program has a lot of activity, such as the main window A, which calls the Sub window B, and if you finish directly in B (), then it shows a. How do you close the entire Android application in B? I have summed up several relatively simple
One, commonly used units: relative units mainly: PX, SP, DPAbsolute units mainly include: PT, in, MM
Second, the Unit application summary: The general use relative unit, but not absolute unit1, the size of the general use of the SP, the font of
First of all, the project code has been uploaded to GitHub, do not want to see a long speech can also go down the code, control code, where do not know where.Code in this Https://github.com/zgzczzw/ZHFollowButton
A few days ago found that the
As usual, the effect chart first
What can you learn from this example:
Deep understanding of paint, Draw pie chart, rectangle, text, etc.
Deepen the mastery of the canvas API, mastering the Custom view
Here are seven steps to complete a simple
One, some mobile phone can not directly receive UDP packets, may be the handset manufacturers in the custom ROM when the function to turn off.1, can first in the OnCreate () method inside the instantiation of a Wifimanager.multicastlock object lock,
first, we're going to save the picture in the database, first to create a database , as follows:
Copy Code code as follows:
Package com.android.test;
Import Java.io.ByteArrayOutputStream;
Import
Android has a lot of time to use the pull up and down refresh, this is a very common function, the Android V4 package also provides us with a native Drop-down refresh control--swiperefreshlayout, you can use it to achieve a simple refresh effect,
First look at the effect:
The picture splits many, clicks the exchange to spell into a complete; such checkpoints are also easy to design, 3 3;4 4;5 5;6 6; Keep going.
Added a toggle animation, the effect is good, in fact, the game is a custom
As an app, need to select a local picture, the first consideration is undoubtedly the system album, but the Android phone is a variety of, plus the mobile pixel upgrade, the big picture can not return the abnormal factors, resulting in the
Usage XML android:background=? attr/zzbackground app:backgroundattr= zzbackground//If the current page is to be refreshed immediately, pass the property name here For example, R.attr.zzbackground Chuan Zzbackground can be android:textcolor=?
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.