1. First, go:
2. Run the CD command to enter the location of the database to be found and run the sqlite3 command.
3. Use the. schema command
4. Select a table
The data in the table is displayed as _ id and mtime. mtext. Garbled
1. Currently, many applications provide day and night reading methods, that is, to mediate the brightness of the screen. It is actually very simple, just some simpleCodeYou can.
2. Implementation Process:
// Screen brightness windowmanager.
SeeCode
1. Add the following opportunity to the activity to hide the top titlebar on the screen.
// Hide the titlebar, which reaches the full screen requestwindowfeature (window. feature_no_title); getwindow (). setflags (windowmanager.
1. Gravity
1. Differences between Android: layout_gravity and Android: gravity
From the name, we can see that Android: gravity refers to the element itself, and the text of the element itself is displayed in any place by changing the attribute
According to official documents:
Shape drawable is a generic shape defined in XML. In most cases, a style (textview, edittext, button...) from a control is defined ......).
It is defined in XML.
File Path: res/drawable/filename.xml
Call format in
The first package: only two files are started.
The second package: List a large number of files, that is, basic Animations (Actions:
Animation: Animation usage, which is basically the same as the format defined by frameanimation provided by the
This product indeed integrated a lot of 2D engine, but it, most of it is still from cocos2d (now there is a Cocos2d-x, you need to go to see http://www.cocos2d-x.org/, xxxbetween a little difficult to enter AH ). A while ago, they remembered that
Screen switching refers to the switching on the screen of the same activity. The longest case is that there are multiple pages in a framelayout, such as a system setting page and a personalized setting page.
By viewing the ophone API documentation,
Step 1: Create a project dataasyncload, as shown in
Step 2: Set the application UI
A. Main. xml
B. listview_item.xml
Step 3: write some helper classes CN. roco. Data. utilsmd5.java
package cn.roco.data.utils;import
Step 1: Create a project popwindow and import the images used by the menu items to the/RES/drawable directory.
(Project Overview) (drawable directory)
Step 2: Set the application UI
A. Overall application interface, Main. xml
B. pop-up menu
Introduction
Google or Baidu is often used when we access the internet. If we enter the information we want in the input box, other prompts related to it will appear, which is very convenient. This effect is implemented using autocompletetextview in
1. directly call the built-in toast
Toast. maketext (context, "the alarm time you set is reached", Toast. length_long). Show ();
But sometimes it cannot satisfy the style we want, so...
2. define your own toast
Toast. xml
To be used in the
Use listview to list personal data or friend data during development
If one of the items is modified, it seems that the corresponding view cannot be found and updated. Of course, if
If you use textview + imageview instead of listview, this
Yesterday we introduced the use of arrayadapter. Today we will introduce a more practical point and rewrite it to meet your own personalized design needs.
Arrayadapter (array adapter) is generally used to display a line of text information, so it is
Sharedpreferences is a lightweight data storage method. It stores key-value pair data based on XML files and is usually used to store some simple configuration information. Its storage location is in the/data//shared_prefs directory. The
I. I recently encountered a problem about the slow toast display. The system's built-in toast display time is only 2 s or 3 S. Of course, toast is used. the cancel () method cancels the previous toast, but if you click show toast multiple times,
Directly run the Code:
Java files
Public class Tuya extends activity {/** called when the activity is first created. */private surfaceview = NULL; private surfaceholder SFH = NULL; private imagebutton clean = NULL; private paint mpaint = NULL;
In actual application development, we sometimes need to set the activity to full screen display. Generally, you can set the full screen display effect in two ways. First, you can set it in the Code. Second, you can set full screen through the
Animation effects have been used to make a small application recently. The team members have already achieved the effects and can modify the effects.
Principle: The animation looks like an image is moving, and several images are constantly switching.
1. Architecture
2. Data Structure
3. Four major functions
In this paper, G-sensor is used as an example to explore the android hierarchy.
1. Architecture
The architecture of android can be divided into four layers.
The first layer is the
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