Monday 9 February 2015

[GUIDE] [TO CHANGE DIALER RESOLUTION BASED ON DPI]

GUIDE TO CHANGE DIALER RESOLUTION BASED ON DPI

1. Find and extract the Contacts.apk from your ROMs zip

2. Decompile it using one of the tools like APK Multitool

3. Find the file dimens.xml located in Contacts.apk\res\values-hdpi

4. Open it using Notepad++ and it should look like below:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="button_grid_layout_button_width">160.0px</dimen>
<dimen name="button_grid_layout_button_height">96.0px</dimen>
<dimen name="dialpad_additional_button_width">160.0px</dimen>
<dimen name="dialer_search_list_view_min_height">173.0dip</dimen>
<dimen name="dialer_search_list_view_max_height">396.0dip</dimen>
<dimen name="dialpad_divider_height">24.0dip</dimen>
<dimen name="dialpad_divider_width">3.0px</dimen>
<dimen name="dialpad_additional_button_height">96.0px</dimen>
</resources>

Now here you need to play with the values given in BOLD., i.e
button_grid_layout_button_width - Increase this for lower DPI value
button_grid_layout_button_height - Increase this for lower DPI value
dialer_search_list_view_max_height - This should be reduced by 3x times the value added to button_grid_layout_button_height 

All done.. Save the file then recompile the APK.. :good:

Regards Team#A2P
Share this article

0 comments:

Post a Comment

 
Copyright © 2014 Team #A2P • All Rights Reserved.
Distributed By Free Blogger Templates | Template Design by BTDesigner • Powered by Blogger
back to top