[Tutorials] Add author information at about the phone - Xperia Play General

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

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

[Tutorial] Open or closed ICS virtual buttons

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"
}

[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

[Library] ContextMenu - floating menu like the new Text Selection in Android 6.0

Description
ContextMenu is a floating menu which show up when user click on a view that it is clipped to. Just like the new Text Selection in Android 6.0.
Check it on Github: ContextMenu
{
"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"
}
Installation
Add this to your app Gradle:
Code:
dependencies {
compile 'com.rstudio.widget:contextmenu:0.1'
}
Declare a new ContextMenu:
Code:
ContextMenu menu = new ContextMenu.Builder(context)
.setContextMenuView(R.layout.context_menu)
.build();
Clip ContextMenu to your view:
Code:
menu.clipToView(desView);
Discussion
For more information and issues, please check this Github repo:
ContextMenu

[Library][4.1.x+]ImageListPreference[Open Source]

ImageListPreference​
Based on ImageListPreference guide at :
'http://www.cmwmobile.com/index.php?option=com_content&view=article&id=4&Itemid=12' .
ImageListPreference class by Arnab Jain. Created for Proficient Apps.
Features
Image/Icon for each list item
Option to set Rounded Images [Circle shape]
Can be created in xml and as well as in Java
Bitmap or Drawable can be used for images when created using Java
Exception handling present along with log inputs for developers to fix issues while using the Preference in their application
Requirements
Tested with APIv21 & APIv23, but will work from APIv16 onward
GITHUB
Android-ImageListPreference
Screenshots
{
"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"
}

Categories

Resources