[Tutorial] Open or closed ICS virtual buttons - Xperia Play General

First you must guide how to decompile apk files
Suitable for all Android devices​
Ok,then,get ready your framework-res.apk,Decompile it
go to res/values,open navigationbar.xml with Notepad++ or Notepad2
search code
<bool name="config_showNavigationBar">false</bool>
give false to true
save,then open dimens.xml
search code
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_width">48.0dip</dimen>
navigation_bar_height behalf of vertical screen height
navigation_bar_width width represents the horizontal screen
The above figures to the size you want
Note: 48.0dip must exist in .0dip
For example: instead 30DPI is 30.0dip
save,Compile, replace the device back on OK
f the CM ROM, please add the code in build.prop
qemu.hw.mainkeys=0
save, reboot you device
If you don't wanna it ,add this code
qemu.hw.mainkeys=1
save, reboot you device
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

disable 3 dot menu on roms

i wanna to disable the 3 dot menu on the apps (not the nav bar) to change the menu windows to bottom, how i do that ?
thanks
Please report ur thread and have it moved to q and a.
This is software Development forum
Regards
N
i think it is...
i think i need to do this
To remove 3-dot menu:
Decompile your framework-res.apk
Go to values folder
Open bools.xml
Search for
<bool name="config_showNavigationBar">true</bool>
and change it to
<bool name="config_showNavigationBar">false</bool>
Recompile your framework-res.apk
want to remove this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
and move the menu window to bottom

[Tutorials] Add author information at about the phone

First you have to know how to decompile
well,then
Let Tutorials Begin!
1.decompile settings.apk
2.goto res/xml open device_info_settings.xml
3.Find the last line </ PreferenceScreen>,
Add this line in the above
<Preference android:title="@string/123" android:key="123" android:summary="@string/456" style="\?androidreferenceInformationStyle" />
Click to expand...
Click to collapse
Attention to the alignment
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4.Then the values ​​/ strings.xml find the last line </ resources>
Also note that the alignment
added above the <string name="123"> ROM Developer </ string>
<string name="456"> your name </ string>
(above 456 behind the is the author *information)
Then you can compile it.
well done
A little preview
GOOD I Chinese

[Tutorials]In the settings at the about phone inside to add a picture

In the "About phone" in the title picture added
Below
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
OK,Then
Let Toturials begin!
same as before,Decompile settings.apk and get ready your resources!
A png picture,480 * 200 pixels,Just as an example
My files
then,you file copy to res/drawable-hdpi,name is logo.png
download this xml file,copy to res/layout
http://forum.xda-developers.com/attachment.php?attachmentid=2685092&stc=1&d=1397455814
goto res/xml open device_info_settings.xml
In
Code:
xmlns: android = "http://schemas.android.com/apk/res/android"
xmlns: settings = "http://schemas.android.com/apk/res/com.android.settings">
Next, add the phrase, note the alignment
Code:
<PreferenceScreen android:layout="@layout/logo" android:key="od_logo" />
preview:
Then you can compile it.
well done
good!thanx huaihuai
Sent from my MI 2SC using xda app-developers app
。。。。。。
bloody hell,you got the sofa

S5 dialer theming.. icon & attribute names

Not having a lot of luck trying to identify some of the items in the S5 dialer.. which makes it harder to change /mod /theme them. Can anyone tell me or guess at what value might control the sub action bar menu background color? It's circled near the top and black in this picture. It's not any of the values in /res/values/colors.xml.
And maybe the names for the two circled icons at the bottom? Normally you could just look at the images in the xxdpi folder.. but most of the pkm files won't decompile with mali or any of the other texture compression tools that I've tried, making it harder to confirm.
.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

How to change grid size

Hello everyone,
it's a simple tweak to change your home screen grid size by your desire.
Modifications were made on Android Marshmallow.
Modification is only for stock Huawei Launcher.
GUIDE:
First of all, device must be rooted.
The next step would be to locate two files and edit them with simple text editor.
1) Go to
Code:
data/data/com.huawei.android.launcher/shared_prefs/LAUNCHER_SETTINGS.xml
open the file and locate this line
Code:
name="DESKTOP_LAYOUT_CELLS">4x4,4x5</string>
Change
Code:
4x4,4x5
to
Code:
4x4,5x5
Save it and close.
2) Go to
Code:
system/hw_oem/[I]SELECT YOUR MODEL/[/I]xml/hw_launcher_default_config.xml
open the file and locate this line
Code:
<item name="config_desktopCellsOptionItems">4x4,4x5</item>
Change
Code:
4x4,4x5
to
Code:
4x5,5x5
3) Restart your phone.
You can adjust app grid size to whatever you want, but in my opinion 4x5,5x5 is the best looking. I'll upload an image how it looks like.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Nice.....
Sent from my HUAWEI VNS-L31 using Tapatalk

Categories

Resources