A year ago, I started to access the public platform. in the next two months, I took charge of and participated in several public account development projects of the company. Then I went on a journey to share my experience with the public platform,
During interviews, I often asked questions about listView optimization. My personal answers are as follows:
1. View reuse Use setTag to cache view
2. Modify the adapter in the main thread
3. Submit the adapter changes in the main thread and call the
Preface: This article introduces FrameLayout: 1. What is FrameLayout? 2. How does FrameLayout set the position of its subview (for example, ImageView.
1. What is the FrameLayout layout?
FrameLayout layout is the simplest layout method. All the views
In the latest demo, scrollto and scroller are used to find that the view is rolled to the positive direction of the coordinate axis only when a negative value is passed.
It's hard to understand, because the scrollto annotation is written
* @ Param x
We used need to check the user's net is work before we need to connect the work. how can we do this?
Just see the code:
Private void checkNet () {ConnectivityManager cm = (ConnectivityManager) this. getSystemService (Context.
1. USB storage devices (such as USB flash drives and mobile hard drives ):
// The USB storage device plugging listening is consistent with the SD card plugging listening.
Private USBBroadCastReceiver mBroadcastReceiver;
IntentFilter iFilter = new
1. AVD Manager.exe: failed to execute tools android. bat
Copy AVD Manager.exe to the same directory as SDK Manager.exe.
2. AVD Manager.exe cannot be started. Start the flash cmd and run tools \ lib \ find_java. A path may be C: \ Windows \ System32
Recently, I found that my project does not have the function of actively monitoring the network status, and all of them are passively dropped! So I found some information on the Internet to implement it! Write it down here, so that you can read it
Reproduced in: http://blog.csdn.net/rihui1hao/article/details/21338971
1. Run python commands in cocos2d-x-3.0rc0 \
Python setup. py
// It is used to add the following paths to your user environment variables. Of course, you can also not add
Starting from this section, I will explain how to create a game similar to flappy bird.I. Sharpen the knife without cutting into the firewood. First, let's introduce the game development environment and the choice of the game engine:◆ Development
Before playing android, You need to download eclipse and the plugin ADT developed by Android. Download the official Android SDK. The setup method will be supplemented later. It is simpler now. You can download it directly from the official website.
The same is true for Android databases used for any development. Android generally uses two databases: local database and remote database. The local database is sqlite, I usually use mysql. This time, I first learned about the local database sqlite.
Background: Establish a tcp connection between a mobile phone and a mobile phone in the LAN and transmit photos through a socket. That is, one mobile phone is used as the server, and the other mobile phone is the client. The client can view the
First, let's clarify the coordinate system in android: in the upper left corner of the screen, the coordinate system origin () is displayed, the origin point is displayed in the right direction of the X axis, and the origin point is displayed in the
This article is an official document translation and Note. Corresponding to develop -- API Guides -- User Interface -- Styles and Themes in the official documentation
Article structure:
0. Style and topic
1. Define a style
1.1 Procedure for defining
AlarmManager is a system-level Reminder Service in Android. It broadcasts a specified Intent at a specific time. When using Intent, we also need it to execute an action, such as startActivity, startService, and startBroadcast, to make Intent useful.
I. ListView View:
ListView is used to display a list control.
Public class MainActivity extends ListActivity {String [] str = {"China", "France", "UK", "Switzerland", "Austria", "USA", "India ", "Vatican"}; @ Overrideprotected void onCreate
I. ActionBar:
The ActionBar replaces the traditional title bar at the top of the device screen. It displays the application icon and activity name. You can also add action items to the ActionBar. action items are shortcuts for operations that are
This is my first technical article. Here I will share my deployment experience. Thank you for your reference.
I simply wrote my deployment steps and only referred to the official readme.
Environment:Win7 64-bit1. Open the cmd Console2. Go to 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