There are multiple Android 4.0 unlock interfaces, which can be set in "security" and "Screen Settings" in Settings. By default, the photo function icon is displayed on the left and the unlock icon is displayed on the right when the touch screen is displayed. The other "NONE", "pattern", and "password" principles are the same. I am still familiar with 4.0, and I do not like high-tech correction in some places. Modifications to the following layout files will be available soon.
LockScreen java class frameworks/base/policy/src/com/android/internal/policy/impl/LockScreen. java constructor can see a piece of code
FinalLayoutInflater inflater = LayoutInflater. from (context );
If (DBG) Log. v (TAG, "Creation orientation =" + mCreationOrientation );
If (mCreationOrientation! = Configuration. ORIENTATION_LANDSCAPE ){
Inflater. inflate (R. layout. keyguard_screen_tab_unlock, this, true );
} Else {
Inflater. inflate (R. layout. keyguard_screen_tab_unlock_land, this, true );
}
Is the layout file of the current page.
The slide layout file is in the frameworks/base/core/res/layout/keyguard_screen_tab_unlock_land.xml (keyguard_screen_tab_unlock.xml) layout for the portrait screen. Find
<! -- Column 2 -->
<Com. android. internal. widget. multiwaveview. MultiWaveView
Android: id = "@ + id/unlock_widget"
Android: layout_width = "200dip"
Android: layout_height = "match_parent"
Android: layout_rowSpan = "7"
Android: targetDrawables = "@ array/lockscreen_targets_with_camera"
Android: targetDescriptions = "@ array/lockscreen_target_descriptions_with_camera"
Android: directionDescriptions = "@ array/lockscreen_direction_descriptions"
Android: handleDrawable = "@ drawable/ic_lockscreen_handle"
Android: waveDrawable = "@ drawable/ic_lockscreen_outerring"
Android: outerRadius = "@ dimen/multiwaveview_target_placement_radius"
Android: snapMargin = "@ dimen/multiwaveview_snap_margin"
Android: hitRadius = "@ dimen/multiwaveview_hit_radius"
Android: topChevronDrawable = "@ drawable/ic_lockscreen_chevron_up"
Android: feedbackCount = "3"
Android: vibrationDuration = "20"
Android: horizontalOffset = "0dip"
Android: verticalOffset = "0dip"
/>
In frameworks/base/core/java/com/android/internal/widget/multiwaveview, this layout is mainly used to change the file to some image animations, and the image status is also an event operation.
Android: targetDrawables = "@ array/lockscreen_targets_with_camera" to view the arrays. xml file
Frameworks/base/core/res/values/arrays. xml according
<Array name = "lockscreen_targets_with_camera">
<Item> @ drawable/ic_lockscreen_unlock </item>
<Item> @ null </item>
<Item> @ drawable/ic_lockscreen_camera </item>
<Item> @ null </item> www.2cto.com
</Array> Find the configuration files ic_lockscreen_unlock and ic_lockscreen_camera in the drawable folder to find the corresponding UI image and modify the image.
Author: LuoXianXion