Rusm @ 28/01/19, 21:05
if I am not mistaken, there are drawn in terms of software, you will not find a picture. And like the color, size, margins regulated resources topics
Drawn in software, yes, but the diameter of the indentation and all I did not have the patience to dig.
In general, Pattern (pattern), that you see on the lock screen, so long as:
com.android.systemui
<! - COLORS PATTERN ->
<color name = "miui_pattern_lockscreen_paint_color">#FFFFFFFF</ color><! - the color of the pattern of points (pattern). He comes to the color of the connection points in graphic design ->
<color name = "miui_pattern_lockscreen_heavy_paint_color">#FFFFFFFF</ color><! - the color of the connection points when you have finished drawing (pattern) ->
<color name = "pattern_lockscreen_paint_error_color"># FFDE462D</ color><! - the color of the connection points of the pattern (pattern) on error ->
<color name = "miui_keyguard_view_eca_text_color"># B2FFFFFF</ color><! - text color and SOS ago under the pattern (pattern) ->
<! - DIMENS PATTERN ->
<dimen name = "miui_keyguard_view_eca_text_size">13.329988sp</ dimen><! - text size inscription SOS and BACK ->
These dimensy I either gave nothing or broken markup:
<dimen name = "miui_unlock_pattern_cell_view_size">100.0dip</ dimen><! - cell size ->
<dimen name = "miui_pattern_lock_pattern_view_horizontal_margin">8.0dip</ dimen><! - horizontal indents ->
<dimen name = "pattern_unlock_screen_bottom_margin">30.0dip</ dimen><! - indent drawing area (pattern) from the lower limit ->
<dimen name = "miui_keyguard_pattern_layout_height">360.0dip</ dimen><! - the height of the drawing area (pattern) ->
<dimen name = "miui_keyguard_pattern_layout_width">290.0dip</ dimen><! - the width of the drawing area (pattern) ->
probably it is necessary not only to rule it all at once, but just calculate the size. If somewhere subtract else to add, in order to obtain the same overall height / width
Here is responsible for setting the diameter of the point. Goes into float.
Changing the theme I have not picked up
<dimen name = "unlock_pattern_view_diameter_factor">0.02</ dimen><! - the diameter of the point (float) ->
Background, ie theme background is not found resources. Other ways to unlock pattern has not gone. Like it smali. The algorithm is something like: lock your wallpaper, plus superimposed background # 80000000
The number of cells in a series of vertical and horizon (3 × 3) too smali
Post has been editedRusm - 29.01.19, 12:41Reason for editing: Printing