Recently, I am working on the MFC OpenGL industry. I have found some materials and sorted out the connection for future use.
A collection of OpenGL app with MFCHttp://www.mfcogl.com/
Generating random fractal terrain:Http://www.gameprogrammer.com/fractal.html
Starting OpenGL in a dialog:Http://codeguru.earthweb.com/opengl/texture_mapping.shtml
Starting rendering modes, a MDI splitter window example.Http://www.codeguru.com/opengl/start.shtml
How to snap an OpenGL client a
Composition of a mobile phone:
CPU central processor
Memory
LCM display
Touchpanel: Capacitive screen/resistive Screen
Headset headphones
Bluetooth
WiFi
GPS navigation
Mic mic
Receive Receiver
Speak speaker
Image sensor camera
G-sensor gravity Sensor
M-sensor compass
Keypad keyboard
Backlight IC screen Backlight
RF module
USB Data Interface
FM radio
Vibrate vibration Motor
Ofn Optical Mouse
Jarball trackball
ATV analog TV
DTV
Battery battery
Some term
(default) provides less information except the startup prompt, test completion, and final result. Level 1 provides detailed test information, such as events sent to the activity one by one. Level 2 provides more detailed settings, such as the selected or unselected activity in the test.
Event-S The seed value of the pseudo-random number generator. If you run the monkey again with the same seed value, it generates the same event sequence.
-- Throttle Insert a fixed delay between events. This opt
card and updates the MNC
Locale
Self-processing is required when the language environment changes-the user selects a new language for displaying text.
Touchscreen
Self-processing is required when the touch screen changes. (This usually does not happen)
Keyboard
When the keyboard type changes, perform self-processing. For example, a user inserts an external keyboard
Keyboardhidden
When the keyboard availability changes, you must perform self-proces
= command_map.get (parts. Get (0 ));If (command! = NULL ){Monkeycommandreturn ret = command. translatecommand (parts, commandqueue );Command_map what is this? Private Static final map No, it's a map. Use command string as the key, and monkeycommand as the value. In this case, it is created,The relationship between the input command and command.Static {// Add in all the commands we supportCommand_map.put ("flip", new flipcommand ());Command_map.put ("Touch", new touchcommand ());Command_map.put
the image file. How to use this function: press the return key and press the power key to start the phone until the fastboot text appears on the screen, and then release the return key.Diagnostic mode (diagnostic mode) is used to test various functions of the mobile phone. It is deliberately enabled through the trackball center key and power key.
Press and hold the golden key on the keyboard (the confirmation key in the middle of the direction key)
.
Further optimize the system performance so that the mobile phone has more running memory
Added the new function of changing the color of the trackball LED indicator.
Optimized 3D performance and enhanced 3D Performance
The FM function will also be fully supported in the new system
For Android 2.3
More beautiful user interface
Improve game experience
Improve multimedia capabilities
= (View) v. getparent ();} // obtain the cellinfo information celllayout. cellinfo = (celllayout. cellinfo) v. gettag (); // This happens when long clicking an item with the DPAD/trackball if (cellinfo = NULL) {return true;} If (mworkspace. allowlongpress () {If (cellinfo. cell = NULL) {// If cellinfo is empty and valid, the Select dialog box if (cellinfo. valid) {// user long pressed on empty space mworkspace. Setallowlongpress (false); // The subse
Android provides the Accessibility function and service to help users who are unable to conveniently use Android smartphones due to visual acuity, hearing, or other physical causes, including text-to-speech and tactile Inversion
Android provides the Accessibility function and service to help users who are unable to conveniently use Android smartphones due to visual acuity, hearing, or other physical causes, including text-to-speech and tactile Inversion
Android provides Accessibility for user
adjustment Reduction/deepening tool + [CTRL] + [alt] + [v]
Highlight fade/deepen tool + CTRL + ALT + z]
Select feature
Select Ctrl +]
Deselect Ctrl + D]
Reselect Ctrl + Shift + d]
Select Ctrl + Alt + D]
Select Ctrl + Shift + I in the reverse direction]
Enter for the selection numeric keyboard]
Load the selection area Ctrl + Click to scale down the chart in the layers, paths, and channel panel
Filter
Press the previous parameter to apply the filter again. Press Ctrl + F]
Return the effect of th
information except the startup prompt, test completion, and final result. Level 1 provides detailed test information, such as events sent to the Activity one by one. Level 2 provides more detailed settings, such as the selected or unselected Activity in the test.
Event-S The seed value of the pseudo-random number generator. If you run the Monkey again with the same seed value, it generates the same event sequence.
-- Throttle Insert a fixed delay between events. This option can reduce the execu
:
A. Distribute events initiated by users to decorview, such as buttons, touch screens, and trackball events;
B. interact with windowmanagerservice to draw the GUI of the entire activity
3.
The drawing process of the entire view tree is expanded in the javasmtraversals () function of the viewroot. Java class. The execution process of this function is as follows:
Determine whether to recalculate the View Size (measure), whether to relocate the view
The android debugging bridge (ADB) shell in the android SDK contains a tool for testing --Monkey.I do not know the origins of the earliest monkey name, but he is indeed like a naughty monkey, In the Android app, all kinds of chaos, chaos, and touch.
How to Use: Enter the command line, go to the platform-tools directory of the android SDK, and enter the commandUser @ User :~ /Workspace/android-sdk-linux_x86/platform-tools $ ADB shell monkey
You can see the usage of the configuration parameters o
To make the new widget interactive, it needs to respond to user events, such as pressing keys, screen touch and Button clicking. Android provides Virtual Event processors to interact with user input:
❑ Onkeydown
It is called when the device key is pressed, including D-pad, keyboard, host, call, rollback, and camera buttons.
❑ Onkeyup
Called when the user releases the pressed key
❑ Ontrackballevent
Called when trackball moves
❑ Ontouchevent
Called
application loads the component from XML and uses it to build the interfaceOnMeasure () checks the size of the View component and its child componentsOnLayout () when the component needs to be assigned the location and size of its child componentsOnSizeChange () when the component size is changedOnDraw () when the component is about to draw its contentOnKeyDown when you press a keyboardOnKeyUp when a keyboard is releasedOnTrackballEvent when a trackball
navigation method)1. NAVIGATION_NONAV (no navigation)2. NAVIGATION_DPAD (Panel Navigation Mode)3. NAVIGATION_TRACKBALL (trackball navigation)4. NAVIGATION_WHEEL (scroll navigation)Data Type: integer
NavigationHidden
Used to indicate whether the navigation is available. The value is as follows.0. NAVIGATIONHIDDEN_UNDEFINED1. NAVIGATIONHIDDEN_NO2. NAVIGATIONHIDDEN_YESData Type: integer
Orientation
The four values that indicate t
Android development custom View, android custom view
Author: Qing Dujun
Address: http://blog.csdn.net/qingdujun/article/details/41551151
[Appendix: -- custom callback functions that are often processed by a ViewOnFinishInflate () is triggered when all the child controls in the View are mapped to xmlOnMeasure (int, int) determines the size of all child elementsOnLayout (boolean, int, int) is triggered when the View allocates the size and position of all child elements.OnSizeChanged (int, int) is
ServiceGET_PACKAGE_SIZE: Allows an application to find out the space used by any package.GET_TASKS: This constant was deprecated in API level 21. No longer enforced.GET_TOP_ACTIVITY_INFO: Allows an application to retrieve private information about the current top activity, such as any assist context it can provide.GLOBAL_SEARCH: This permission can be used on content providers to allow the global search system to access their data.HARDWARE_TEST: Allows access to hardware peripherals.INJECT_EVEN
ListView focus, androidlistview focus
If the view of a single Item in ListView contains a view such as checkbox and button, the ListView. setOnItemClickListener is invalid,
The event is captured by the View, and ListView cannot capture and process the event.
Solution:
Method 1:
Add android: focusable = "false" to the view corresponding to the checkbox and button"Android: clickable = "false" android: focusableInTouchMode = "false"
Focusable is the key
Call getSelectedItemPosition () from OnClickL
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.