the view should to render its content.
Event processing
OnKeyDown (int, keyevent)
Called when a new hardware key event occurs.
onKeyUp (int, keyevent)
Called when a hardware key up event occurs.
Ontrackballevent (motionevent)
Called when a trackball motion event occurs.
Ontouchevent (motionevent)
Called when a touch screen motion event occurs.
Focus
On
capacityAndroid.permission.GET_TASKS allows a program to get information about the current or most recently run tasks, an abbreviated task status, whether the activity is active, etc.Android.permission.HARDWARE_TEST Allow access to hardwareAndroid.permission.INJECT_EVENTS allows a program to intercept user events such as keystrokes, touches, trackball etc. wait until a time stream, the Android Development Network alert is hook technology barAndroid.p
practical experience of the feature.Android Accessibility API Introduction and calling methodFor those who are unable to use Android smartphones for their eyesight, hearing or other physical reasons, Android offers accessibility features and services to help these users operate devices more simply, including text-to-speech, haptic feedback, gesture manipulation, Trackball and handle operation. Developers can build their own accessibility services, wh
Chapter OSG Overview of three-dimensional rendering enginesThe main features of OSG include the following:1. You can efficiently draw and control 3D models built using modeling software, such as 3DMAX, MAYA, creator and other 3D models, which is the basic function of scene rendering.2. Support a variety of peripherals, such as joystick, joystick, trackball, steering wheel, keyboard and mouse.3. In addition to the traditional two-dimensional screen on
in the Accounts Service)
Android. Permission. get_package_sizeAllows a program to obtain the space occupied by any package (allows an application to find out the space used by any package .)
Android. Permission. get_tasksAllows a program to obtain information about the currently running or recently running task, a scaled task status, whether the task is active, and so on (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the
)
Android. Permission. get_package_size
Allows a program to obtain the space occupied by any package (allows an application to find out the space used by any package .)
Android. Permission. get_tasks
Allows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what acti
running task, the status of a scaled task, and whether the task is active (Allows an application to getInformation about the currently or recently running tasks: a thumbnailRepresentation of the tasks, what activities are running in it, etc .)
Android. permission. HARDWARE_TEST
Allow access to hardware (allows access to hardware peripherals .)
Android. Permission. inject_events
Allows a program to intercept user events such as buttons, touch, trackball
A user message is a message that is converted from a hardware physical message to a unified format defined in the framework by the Front-End of message processing. Messages are classified into three types:
(1) key message
(2) touch messages
(3) trackball message
Because trackball messages are not commonly used or are never used at all, we will not introduce them.
One-click message
The implementation class o
. GET_PACKAGE_SIZEAllows a program to obtain the space occupied by any package (Allows an application to find out the space used by any package .)
Android. permission. GET_TASKSAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc .
wish to create a custom hardware profile [No] Yes
Device Ram size: the amount of physical RAM on the device, in megabytes.HW. ramsize [96]: 128
Touch-screen support: whether there is a touch screen or not on the device.HW. touchscreen [Yes]: Yes
Track-ball support: whether there is a trackball on the device.HW. trackball [Yes]: Yes
Keyboard support: whether the device has a QWERTY keyboard.HW. keyboard [Ye
Android's official developer blog posted a slide to introduce some tips on Android UI design. Here, we will show you how to speak.
Don't:1. Do not copy your uidesign on other platforms. Users should feel that they are using an Android software to strike a balance between your trademark display and overall platform view.2. Do not over-use the Modal Dialog Box3. Do not use a fixed absolute positioning layout.4. Do not use PX units. Use DP or SP for text.5. Do not use a small font.
Do:1. Create res
. get_tasksAllows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in IT, etcAllows a program to obtain information about the current or recent running tasks, the status of a scaled task, and whether the task is active.
Android. Permission. hardware_testAllows access to hardware peripherals.Allow access to hardware
Android. Permission. inject_eventsAllows an application to inject user events
package .)Android. Permission. get_tasksAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and whether the task is active (allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc .)Android. Permission. hardware_testAllow access to hardware (allows access to hardware peripherals .)Android. Permission. inject_eventsA
constructor that are called when the view is created from code and a form that is called when the view is inflated from a layout file. the second form shoshould parse and apply any attributes defined in the layout file.
OnFinishInflate ()
Called after a view and all of its children has been inflated from XML.
Layout
OnMeasure (int, int)
Called to determine the size requirements for this view and all of its children.
OnLayout (boolean, int, int)
Called when
from a layout file. the second form shoshould parse and apply any attributes defined in the layout file.
OnFinishInflate ()
Called after a view and all of its children has been inflated from XML.
Layout
OnMeasure (int, int)
Called to determine the size requirements for this view and all of its children.
OnLayout (boolean, int, int)
Called when this view shoshould assign a size and position to all of its children.
OnSizeChanged (int, int)
Called
, whiteLight);} void display () {glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // clear the color and depth buffer glMatrixMode (GL_PROJECTION ); // perform glLoadIdentity () on the projection matrix; // move the coordinate origin to the center glMatrixMode (GL_MODELVIEW); // perform glPushMatrix () on the model visual matrix; glRotatef (spin, 0.0, 1.0, 0.0); // set the material glMaterialfv (GL_FRONT, GL_SPECULAR, matSpecular); // set the glMaterialfv (GL_FRONT, GL_SHININESS, matShinines
;Navhidden: the navigation key is unavailable.If you can see the navigation key, you can change this restriction when the application is running.The navigationHidden configuration field indicates whether the navigation key is hidden.
Main non-touch screen navigation methods
NonavDpadTrackballWheel
Nonav: the device has no navigation facilities except touch screens.Dpad: the device has a d-pad for navigation ).Trackball: the device has a
-resolution screens (better overall zoom-in ratio)2> the elements to be clicked must be large enough3> the icon design follows the android standard.4> Use appropriate spacing (margins, padding)5> supports D-pad and trackball navigation.6> correctly manage the activity Stack7> correctly handle screen direction changes8> use theme/style, size, and color resources to reduce unnecessary values9> cooperation with visual Interaction designers !!!
Design Ph
)) { int[] L = {0, 0 }; V.getlocationinwindow (l); intleft = l[0], top = l[1], bottom = top + v.getheight (), right = Left+v.getwidth (); if(Event.getx () > Left event.getx () Right event.gety () > Top event.gety () bottom) { //Click on the EditText event and ignore it. return false; } Else { return true; } } //If the focus is not edittext then ignore, this occurs when the view has just been drawn, the first foc
be a reserved permission.
Android. permission.Get_accountsAccess an account list in the Accounts Service (allows access to the list of accounts in the Accounts Service)
Android. permission.Get_package_sizeAllows a program to obtain the space occupied by any package (allows an application to find out the space used by any package .)
Android. permission.Get_tasksAllows a program to obtain information about the currently running or recently running task, the status of a scaled task, and wheth
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.