The previous section describes how to use Maven to build an Android project and how to use JDEE to write programs.
Ubuntu 14.04 Android uses Maven 2 to create its own Maven Project
For how to install JDEE, refer to the previous article:
Configure
In the development process, sometimes such a control is required, which is invisible under normal circumstances and does not occupy any layout space. It is only displayed under certain circumstances. In this case, we use a common View and
Activity --- the container that stores controls in the android system. In general, it is equivalent to CFrame in MFC. After completing the android4.4.2 development environment, it is found that the development efficiency is much higher than
1> prepare a background image:Background_pix.png
Bitmap_repeat.xml
3> define the style File style. xml
@ Style/StatusBarBackground
4> reference the topic android: theme = in manifest. xml"@ Style/XTheme"
Custom title bar layout file
A few days ago, I went to participate in the service outsourcing competition with my work, because I waited for a long time after the ranking, I started to discuss Android development experience with contestants who participated in the competition
Recently transplanted the project to cocos2d-x 3.0, in the whole Android compiling environment, a lot of compilation errors, are similar to "error: expected '; 'at end of member declaration" and so on, I saw some compilation errors, are the code
Here are all the classes and methods that Unity3d can use in the network. Looking at the parameter functions,
Unity3d is the best choice for writing a mobile game:
Parameters that can be passed by
1. Get the object representing the control2. Define a class to implement the listener Interface3. Generate the listener object
4. Bind a listener object to the control
Button1 = (Button) findViewById (R. id. button1); // get the control id
Recently, due to the need of the company, we made a flashlight. In fact, the principle of the flashlight is very simple. We can call the camera flashlight to control the flashlight switch to achieve the flashlight effect,
Note that the flash must be
Time is in a hurry. At first glance, half a year has passed. after half a year of hard work, we have finally been revived with blood.
The apkplug framework is used to dynamically Replace the UI elements in the host Activity, so that the UI style can
Previously, the framework layer code of the Android system source code was modified to customize the ROM. After using make, three image files, userdata. img, system. img, and ramdisk. img, are generated. At this time, we need to replace the system
Mainly involves (1) monitoring a widget in the layout
(2) set display and delete parameters in the layout File
There are three visibility parameters. Here I only set one, which is visible.
android:visibility="visible"
The rest is the same as its
Because the verification code is used in the project, I found some information and tried to give it out. The code is not a lot and it is relatively simple, the following shows how I implemented this function:
First of all, write XML and paste
This time, our task is to implement small blocks on the game panel. Our main panel is a GridLayout. We add small blocks one by one to GridLayout to form our current game panel.
The small square is relatively simple. The key is, how can we make it
First, you need to download three files:
Android-ndk
Android-sdk
Ant
Download location: Because 3.0rc2 Runs setup. py to automatically search for the three files
The cmd of win32 is as follows:
(1): cmd to find the cocos2d-x 3.0rc directory, run
Zookeeper Chapter 2 cpp-empty-test: HelloWorld!
In the previous chapter, we talked about renaming the previous HelloWorld demo to cpp-empty-test. In this chapter, we will analyze this cpp-empty-test.
Run the program. We can see the familiar
(1) The methods in the paint and canvas classes are mainly used.
(2) It mainly uses the line and circle method.
(3) drawline (start point axis coordinate, start point Y axis coordinate, end point axis coordinate, end point Y axis coordinate)
(4)
A simple Demo download of TableView: http://download.csdn.net/detail/qqmcy/7219489
HelloWorldScene. h
#include "cocos2d.h"#include "cocos-ext.h"USING_NS_CC_EXT;USING_NS_CC;class HelloWorld : public cocos2d::Layer , public TableViewDataSource,
I wanted to look for an example of a rounded corner on the Internet. It was not satisfactory. It was basically the schematic of the official Demo and will be posted later. So I customized a View to achieve the rounded corner and circular effect of
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