Requirements:
1. Knowledge of compiling/recompiling apk
2. Framework-res.apk of your phone
Steps:
1. De-compile framework-res.apk
2. After decompiling go to framework-res.apk\res\values folder and open arrays.xml
3. In arrays.xml find
Code:
<string-array name="lockscreen_num_pad_klondike">
Code:
<string-array name="lockscreen_num_pad_klondike">
<item></item>
<item></item>
<item>ABC</item>
<item>DEF</item>
<item>GHI</item>
<item>JKL</item>
<item>MNO</item>
<item>PQRS</item>
<item>TUV</item>
<item>WXYZ</item>
</string-array>
So that it look like this
Attachment 3098201
Save and close it.
4. In same folder open styles.xml and find
Code:
<style name="Widget.Button.NumPadKey" parent="@style/Widget.Button">
Code:
<style name="Widget.Button.NumPadKey" parent="@style/Widget.Button">
<item name="textSize">34.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#ffffffff</item>
<item name="gravity">left|center</item>
<item name="background">?selectableItemBackground</item>
<item name="paddingLeft">20.0dip</item>
<item name="paddingBottom">10.0dip</item>
<item name="singleLine">true</item>
<item name="fontFamily">sans-serif</item>
</style>
Code:
<item name="gravity">center</item>
Code:
<item name="paddingLeft">0.0dip</item>
So that the whole code looks like this
Attachment 3098219
We just made the keys 1,2,3 etc in center
5. Now go to framework-res.apk\res\layout folder and open keyguard_pin_view.xml
Find this line
Code:
<ImageButton androidprv:id="@id/key_enter" androidprv:paddingRight="30.0dip" androidprv:layout_width="0.0px" androidprv:layout_height="fill_parent" androidprv:src="@drawable/sym_keyboard_return_holo" androidprv:layout_weight="1.0" androidprv:contentDescription="@string/keyboardview_keycode_enter"
style="@style/Widget.Button.NumPadKey" />
Remember the 20.0dip we changed its placed here if something else in your case put that
Code:
androidprv:paddingLeft="20.0dip"
Code:
<ImageButton androidprv:id="@id/key_enter" androidprv:paddingLeft="20.0dip" androidprv:paddingRight="30.0dip" androidprv:layout_width="0.0px" androidprv:layout_height="fill_parent" androidprv:src="@drawable/sym_keyboard_return_holo" androidprv:layout_weight="1.0" androidprv:contentDescription="@string/keyboardview_keycode_enter" style="@style/Widget.Button.NumPadKey" />
Code:
<TextView androidprv:textAppearance="@style/TextAppearance.NumPadKey" androidprv:gravity="center" androidprv:id="@id/pinEntry" androidprv:background="@null" androidprv:paddingLeft="40.0dip" androidprv:layout_width="0.0dip" androidprv:layout_height="fill_parent" androidprv:cursorVisible="false" androidprv:singleLine="true" androidprv:editable="true" androidprv:layout_weight="1.0" androidprv:imeOptions="actionDone|flagForceAscii" androidprv:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" />
Code:
androidprv:paddingLeft="40.0dip"
Now changed line will look like this
Code:
<TextView androidprv:textAppearance="@style/TextAppearance.NumPadKey" androidprv:gravity="center" androidprv:id="@id/pinEntry" androidprv:background="@null" androidprv:paddingLeft="40.0dip" androidprv:layout_width="0.0dip" androidprv:layout_height="fill_parent" androidprv:cursorVisible="false" androidprv:singleLine="true" androidprv:editable="true" androidprv:layout_weight="1.0" androidprv:imeOptions="actionDone|flagForceAscii" androidprv:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left" />
If you like It Hit Thanks Button
0 commentaires:
Enregistrer un commentaire