[GUIDE][TUT]Remove useless alphabets from pin lockscreen - Sony Cross-Device General

Simple Guide To make Pin Lockscreen from:
{
"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"
}
To​​
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">
It must be like this
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>
Simply remove all alphabets from it abc,def, so on
So that it look like this
View 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">
It must be something like this
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>
[COLOR="Red"]<item name="gravity">left|center</item>[/COLOR]
<item name="background">?selectableItemBackground</item>
[COLOR="Red"]<item name="paddingLeft">20.0dip</item>[/COLOR]
<item name="paddingBottom">10.0dip</item>
<item name="singleLine">true</item>
<item name="fontFamily">sans-serif</item>
</style>
Simply change the red line with this
Code:
<item name="gravity">center</item>
Code:
<item name="paddingLeft">0.0dip</item>
Remeber 20.0dip we changed to 0.0dip will use it later. [maybe it is different in your case whatever it is just remember it]
So that the whole code looks like this
View 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:
<[COLOR="Red"]ImageButton androidprv:id="@id/key_enter"[/COLOR] 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/[COLOR="Red"]Widget.Button.NumPadKey[/COLOR]" />
Since we changed the style of Widget.Button.NumPadKey to fix it for enter key we will add this in the above line.
Remember the 20.0dip we changed its placed here if something else in your case put that
Code:
androidprv:paddingLeft="20.0dip"
Now new line will look like this
Code:
<ImageButton androidprv:id="@id/key_enter" [COLOR="Red"]androidprv:paddingLeft="20.0dip"[/COLOR] 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" />
Since we made the keys in center then pin we enter is not above the 2 key so to make the pin in center find
Code:
<TextView androidprv:textAppearance="@style/TextAppearance.NumPadKey" androidprv:gravity="center" [COLOR="Red"]androidprv:id="@id/pinEntry"[/COLOR] 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" />
Add this in the above line
Code:
androidprv:paddingLeft="40.0dip"
Just double of 20.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" [COLOR="Red"]androidprv:paddingLeft="40.0dip"[/COLOR] 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" />
6. Save and Recompile and replace framework-res.apk and enjoy clean beautiful lockscreen.
If you like It Hit Thanks Button

Related

[Q] Last question about database

I have currently developed 90% of my app, and i need help at the last part.
I want to thange the default database path to another user spezified path.
i get an error when i try this:
Code:
String myPath = "/data/data/com.android.providers.settings/databases/settings";
SQLiteDatabase myDB = SQLiteDatabase.openDatabase(myPath, null,SQLiteDatabase.OPEN_READWRITE);
The Debug monitor shows:
Code:
FATAL EXCEPTION: main
android.database.sqlite.SQLiteException: unable to open database file
i hope someone here can help me
It can't open it because it's not there.
You need to create the DB in that "settings" subdirectory. Or you can just use adb shell and copy the DB to .../settings.
the database exists, found with root explorer
when i want to acces the database with:
SQLiteDatabase myDB = set.this.openOrCreateDatabase("/data/data/com.android.providers.settings/databases/settings.db", MODE_PRIVATE, null);
it says, unable to open file, that means that the database not exists, but there is one, please, thats the last part, i need help
ilendemli said:
Code:
String myPath = "/data/data/com.android.providers.settings/databases/settings";
SQLiteDatabase myDB = SQLiteDatabase.openDatabase(myPath, null,SQLiteDatabase.OPEN_READWRITE);
Click to expand...
Click to collapse
Didn't you forget the ".db" at the end of /data/data/com.android.providers.settings/databases/settings ?
tryed with db and without db, the same problem:
Code:
SQLiteDatabase myDB = set.this.openOrCreateDatabase("/data/data/com.android.providers.settings/databases/settings.db", MODE_PRIVATE, null);
What does the Debug monitor shows when you do openOrCreateDatabase ? (can't be "unable to open database", if it were it would create it)
I am catching the Exception and showing the error as toast message,
at the debugger there is this error:
Database: sqlite3_open_v2("/data/data/com.android.providers.settings/settings.db", &handle, 6, NULL) failed
According to this link :http://www.sqlite.org/c3ref/open.html, you should be able to execute sqlite3_errmsg to have a description of the error.
But I have to admit that I don't know if you can do that easily with the SDK :/ I don't really know how it handles errors in this case (cause "failed" isn't really speaking to me ^^)
Edit : Hey, I just spotted something ! You missed your shot in writing the path to settings.db !
You wrote : /data/data/com.android.providers.settings/settings.db
It is : /data/data/com.android.providers.settings/databases/settings.db
I tryed it.. annd.... the same error..
if i try:
Code:
SQLiteDatabase myDB = set.this.openOrCreateDatabase("/data/data/com.android.providers.settings/databases/settings.db", MODE_PRIVATE, null);
it should normally create a new database at the dir.
when i type /data/data/.file/settings.db
there will be created the database, but at com.android.providers.settings/databases/ or all other com.* folders, it haves no permission.. :/
Try to add WRITE_SECURE_SETTINGS permission to your manifest then. Perhaps it will unlock it
Code:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
alot of permissions xD i will try it
€: nope, no permission.
Well, I think I've reached my limit ^^
I'll go with the "If you don't have and can't have the permission to touch it, then don't" and try to find an API that do the things you want.
BTW, can you explain what you want to do with this DB ?
i want to change "wifi_http_proxy" and "wifi_http_port"
Are you sure that these fields even exist ?
I can find http_proxy, but no wifi_http_proxy nor wifi_http_port :/
which android do you have? 2.1? or 2.2?
2.2, but I'm using the official SDK website as a reference (and Google, obviously ^^)
can you change proxy settings manually?
Virtual 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"
}
My Phone:
Yes, I have the same screen as yours (2nd one).
hmm.. have you ever tryed to change the settings? try it to change, and then open the database /data/data/com.android.providers.settings/databases/settings.db -> system and then look for "wifi_http_proxy" and "wifi_http_port"
I'll try it once I get home. I'm at work now, and they locked the possibility to connect something with USB :/
I'll tell you what I'll see.

[REQUEST] find png

Hi dear, I'm looking for png image, you know where I can find them?
{
"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"
}
I apologize for my English, I use google traslator
thanks in advance.
those aren't images, you can change the colour of them in framework-res.apk\res\drawable\progress_horizontal.xml.
3x colour codes top/middle/bottom for the progress bar (@id/progress)
But how to modify this xlm?
Is closed
I so far I have never ever changed a xlm, I just changed png file.
I have no idea
Thanks for support
Decompile using apktool, make changes to xml using notepad, recompile using apktool. Done.
Decompiling an APK without having already used APKTool can be potentially frustrating.
If you are interested, these may help:
Tutorial Part 1: http://www.youtube.com/watch?v=YgWd0jsDtH0
Tutorial Part 2: http://www.youtube.com/watch?v=X1BWaQq1O0Q
Josh.
Ok, decomplile apk with apkmanager, open with notepad progress_horizzontal.xlm
This is the result:
if I want the color blue board, for example, this:
What value should I put??
This?? 00bcea
In which rows??
This is the content of my XML:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff525558" android:endColor="#ff525558" android:angle="270.0" android:centerY="0.8" android:centerColor="#ff0b0c0d" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#80b4ed2d" android:endColor="#a07daf18" android:angle="270.0" android:centerY="0.8" android:centerColor="#80649016" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ffb4ed2d" android:endColor="#ff7daf18" android:angle="270.0" android:centerY="0.8" android:centerColor="#ff649016" />
</shape>
</clip>
</item>
</layer-list>
Little help?
Yep, that's all. Just make sure that there is a hash in front.
Josh
if you want the progress bar all one colour top to bottom.
the 'ff' at the start of the colour code is the transparency 'ff' being solid colour.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff525558" android:endColor="#ff525558" android:angle="270.0" android:centerY="0.8" android:centerColor="#ff0b0c0d" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#80b4ed2d" android:endColor="#a07daf18" android:angle="270.0" android:centerY="0.8" android:centerColor="#80649016" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor=[COLOR="Red"]"#ff00bcea"[/COLOR] android:endColor=[COLOR="Red"]"#ff00bcea"[/COLOR] android:angle="270.0" android:centerY="0.8" android:centerColor=[COLOR="Red"]"#ff00bcea"[/COLOR] />
</shape>
</clip>
</item>
</layer-list>
Ok, I modified the XML, the result is pitiful:
I changed two values in order to test, the volume has gone crazy
In summary:
First line what color change?
second line?
third line??
This il my modify xlm:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff46e2f9" android:endColor="#ff525558" android:angle="270.0" android:centerY="0.8" android:centerColor="#ff01b0e9" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#8046e2f9" android:endColor="#a07daf18" android:angle="270.0" android:centerY="0.8" android:centerColor="#8001b0e9" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff46e2f9" android:endColor="#ff7daf18" android:angle="270.0" android:centerY="0.8" android:centerColor="#ff01b0e9" />
</shape>
</clip>
</item>
</layer-list>
I was wrong?
RoBy46 said:
Ok, I modified the XML, the result is pitiful:
I changed two values in order to test, the volume has gone crazy
In summary:
First line what color change?
second line?
third line??
I was wrong?
Click to expand...
Click to collapse
yes that looks pitiful
did you read the post i made where i changed the colours and highlighted them in red for you?
1st line = @id/background
2nd line = @id/secondaryProgress
3rd line = @id/progress
you want to change the 3 colours in the @id/progress line - top, bottom and middle colours all in the same line of code.

[Tutorial]How to remove title of the Power Menu

Tools needed :
My KIT for SMALI files (using options for each step )
Notepad++( Hexadecimal editor for *.xml )
_______________ Power Menu modded ______________
{
"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"
}
Open my zip kit ( recomended in a Theming Folder for example with apkmanager and all files you would like to mod )
What you get :
Baksmali
Baksmali ( executable Jar File )
Command.exe ( Shell file )
Notepad text with the two commands for decompile and compile already made for you ( just copy and paste into command.exe )
Smali
Smali ( executable Jar File )
1.Pull out android.policy.jar ( located in /framework from the rom you are running.
2.Place it in the file where you unzip my Smali kit.
Example : C:\SMALI\android.policy.jar
3. You need to decompile android.policy.jar :
Open the cmd ready for you in the kit and paste
Code:
java -jar baksmali.jar -x android.policy.jar -o classout
(classout folder can be renamed to whatever you want, doesnt matter until you dont forget to change the name too in the second command)
4. Make the modifications you want for smali files, in this case : Open Global.Actions.smali with Notepad++
located in \\classout\com\android\internal\policy\impl\
5. CTRL+F to search the line "settitle"
Just over it, you should see a line looking like
Code:
const v2, 0x1040120
change to :
Code:
const v2, 0x1040017
6. Compile again android.policy.jar :
Open the cmd ready for you in the kit and paste
Code:
java -Xmx512M -jar smali.jar classout -o classes.dex
7. Copy and paste the file classes.dex into android.policy.jar _ you will overwrite the old "classes.dex"
8. Replace your modded android.policy.jar and flash it _ Enjoy your new Power Menu
Thanks to Rafalense
thanks a lot ..was looking for this one too ... you my friend are truly awesome
Thread closed at OP request.

[Q] How to Open New Screen in Android

Hello All,
I am following this article to learn how to open new screen on button click: http://learnandroid.blogspot.com/2008/01/opening-new-screen-in-android.html
But I am getting 3 error messages like this:
Code:
Description Resource Path Location Type
id cannot be resolved or is not a field screen1.java /screen1/src/test/android line 18 Java Problem
id cannot be resolved or is not a field screen2.java /screen1/src/test/android line 13 Java Problem
Unparsed aapt error(s)! Check the console for output. screen1 line 1 Android ADT Problem
This is what I have done till now:
screen1.java
Code:
package test.android;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class screen1 extends Activity
{
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.screen1);
Button b = (Button)findViewById(R.id.btnClick);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
Intent i = new Intent(screen1.this, screen2.class);
startActivity(i);
}
});
}
}
screen2.java
Code:
package test.android;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class screen2 extends Activity
{
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.screen2);
Button b = (Button) findViewById(R.id.btnClick2);
b.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
setResult(RESULT_OK);
finish();
}
});
}
}
AndroidManifest.xml
Code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="test.android">
<application android:icon="@drawable/icon">
<activity class=".Screen1" android:label="Screen 1">
<intent-filter>
<action android:value="android.intent.action.MAIN" />
<category android:value="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity class=".Screen2" android:label="Screen 2">
</activity>
</application>
</manifest>
screen1.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="You are in the first Screen"
/>
<Button
id ="@+id/btnClick"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Open New Screen"
/>
</LinearLayout>
screen2.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="You are in the New Screen"
/>
<Button
id ="@+id/btnClick2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Close"
/>
</LinearLayout>
Please help guys !
To give you an idea, this is screenshot of my project
{
"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"
}
You have to import the the other class as well. import screen2 in class screen1.
Cmd+Shift+o on mac. probably Ctrl+Shift+o on Windows.
I just tried by placing my cursor on screen1.java
nothing happened ?
and why I am getting those 3 errors ? is it something to do with class ?
Try clicking the "Project -> Clean... -> Select your project -> Click OK" and see if that fixes the problem.
You don't seem to have your resources imported. For example, in my programs, I have "com.package.R" imported. This class links your resources to your java code, and hence it won't find your ID's if you haven't imported it.
Try clean your project (Eclipse is project -> clean, not sure about the others), and see if it then nags you to import it. Otherwise, try manually importing it - it's found under the "gen" folder.
MrP.
try adding "android:" in front of id
Rootstonian said:
try adding "android:" in front of id
Click to expand...
Click to collapse
I think that's the answer. Its supposed to be android:id="@+id/someid"
That and then do a clean build to get R.java to update
From something awesome
killersnowman said:
I think that's the answer. Its supposed to be android:id="@+id/someid"
From something awesome
Click to expand...
Click to collapse
Yes this is correct. Didn't even phase me haha
dolby71 said:
You have to import the the other class as well. import screen2 in class screen1.
Cmd+Shift+o on mac. probably Ctrl+Shift+o on Windows.
Click to expand...
Click to collapse
Not true. screen1 and screen2 are in the same package. As long as the package is defined in each class you don't have to import any classes from that package. And the call to screen2.class is a static call
http://www.programmersheaven.com/mb/java_beginners/288070/288070/import-and-package/
From something awesome

[TUT][4.1+] How to transform your framework into Honami framework!

Hi, its my first tut on XDA Forum
I would like to share with you my knowledge.
To decompile, sign and recompile files I using Advance ApkTool​
1. Theme accent color in dialog, pop up, settings, text highlight etc..
Screens:
{
"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"
}
Tutorial:
Its very easy mod!
1. Recompile your framework-res.apk
2. Go to /res/values/ and open color.xml
3. Find <color name="holo_blue_light">..</color> and replace value with @com.sonyericsson.uxp:color/semc_theme_accent_color
shoud look like this:
4. Now find:
Code:
<color name="highlighted_text_dark">
<color name="highlighted_text_light">
<color name="highlighted_text_holo_dark">
<color name="highlighted_text_holo_light">
and replace color value with @com.sonyericsson.uxp:color/semc_theme_accent_color
5. Now go to apktool.yml and add this line under isFrameworkApk: true
Code:
usesFramework:
ids:
- 2
6. Now recompile, sign and push into /system/framework !
2. Theme accent color in Progress bar
Screens:
Tutorial:
1. Recompile your framework-res
2. Download this files proggres.rar and paste to /res/drawable & /drawable-hdpi
3. Now go to styles.xml and find this line:
Code:
<item name="progressDrawable">@drawable/progress_horizontal_holo_light</item>
replace it with
Code:
<item name="progressDrawable">@drawable/semc_progress_horizontal_holo_light</item>
now find this line:
Code:
<item name="progressDrawable">@drawable/progress_horizontal_holo_dark</item>
and replace it with
Code:
<item name="progressDrawable">@drawable/semc_progress_horizontal_holo_dark</item>
4. Recompile, sign and push in /system/framework!
3. Cool list separator accorind theme color!
Screens:
Tutorial:
1. Recompile your framework-res
2. Create new list_separator_background.xml file in /res/drawable
Code:
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@com.sonyericsson.uxp:color/semc_theme_accent_color" />
<corners android:topRightRadius="8.0px" android:bottomRightRadius="8.0px" />
<padding android:left="4.0dip" android:top="2.0dip" android:right="4.0dip" android:bottom="2.0dip" />
</shape>
3. Now go to styles.xml and find this
Code:
@drawable/dark_header_dither
and replace it with this:
Code:
@drawable/list_separator_background
find this:
Code:
@drawable/light_header_dither
and replace it with this:
Code:
@drawable/list_separator_background
find this style
Code:
<style name="Widget.Holo.TextView.ListSeparator" parent="@style/Widget.TextView.ListSeparator">
under this style find this
Code:
<item name="background">
and replace it with
Code:
@drawable/list_separator_background
like this:
do the same with this style
Code:
<style name="Widget.Holo.Light.TextView.ListSeparator" parent="@style/Widget.TextView.ListSeparator">
4. Recompile, sign and push to /framework
4. Text fields according theme color and search box
Screens:
Tutorial:
1. Decompile your framework-res
2. Download this files Text fields and paste it
3. Open styles.xml and find this style:
a)
Code:
<style name="Theme.Holo.Light" parent="@style/Theme.Light">
under this style find
Code:
<item name="editTextColor
and
Code:
<item name="editTextBackground">
Replace it to look like this:
Code:
<item name="editTextColor">@color/semc_edittext_color_dark</item>
<item name="editTextBackground">@drawable/semc_edit_text_holo_light</item>
b)
Now, under this style:
Code:
<style name="Theme.Holo" parent="@style/Theme">
find this:
Code:
<item name="editTextColor
Code:
<item name="editTextBackground">
and edit to look like this:
Code:
<item name="editTextColor">@color/semc_edittext_color_dark</item>
<item name="editTextBackground">@drawable/semc_edit_text_holo_dark</item>
4. Now find this line
Code:
<item name="searchViewTextField">
and edit to look like this:
in Theme.Holo
Code:
<item name="searchViewTextField">@drawable/semc_textfield_searchview_holo_dark</item>
in Theme.Holo.Light
Code:
<item name="searchViewTextField">@drawable/semc_textfield_searchview_holo_dark</item>
5. Save, recompile, sign and push to framework!
5. How to port switchers accorind theme color
Screens:
Tutorial:
1. Decompile your framework-res
2. Download switch.rar (see attachment) and paste it
3. Now go to /res/values/strings.xml and add this string to end of the file
Code:
<string name="capital_on_blind" />
<string name="capital_off_blind" />
save & exit
4.1 Open styles.xml and find this style:
Code:
<style name="Widget.Holo.Light.CompoundButton.Switch" parent="@style/Widget.CompoundButton.Switch">
edit this style to look like this:
Code:
<style name="Widget.Holo.Light.CompoundButton.Switch" parent="@style/Widget.CompoundButton.Switch">
<item name="textOn">@string/capital_on_blind</item>
<item name="textOff">@string/capital_off_blind</item>
<item name="thumb">@drawable/switch_inner_holo_light</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_light</item>
<item name="switchMinWidth">70.0dip</item>
<item name="switchPadding">8.0dip</item>
<item name="thumbTextPadding">12.0dip</item>
</style>
4.2 Now find this style
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
end edit to look like this:
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on_blind</item>
<item name="textOff">@string/capital_off_blind</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_light</item>
<item name="switchMinWidth">70.0dip</item>
<item name="switchPadding">8.0dip</item>
<item name="thumbTextPadding">12.0dip</item>
</style>
5. Save, recompile, sign and push to framework!
Its my first tutorial,
Hit thanks If you like it!
To do:
•How to port search box and text fields according theme color, Added
•How to port switchers accorind theme color, Added
•How to port btn_toggle, day &number picker according theme color
• and more...
one more
How to change colors of bubbles (Received and Sent) is SMS message? Thanks...
Congrats!!
Really useful and well written!!
top work bro.
so usfull
.
Nice work Bro
serajr said:
Really useful and well written!!
Click to expand...
Click to collapse
alinolaw71 said:
top work bro.
so usfull
.
Click to expand...
Click to collapse
Ambor said:
Nice work Bro
Click to expand...
Click to collapse
Thank you guys!!
/Added tutorial how to port search box and text fields according theme color!
if I add id 2
than bootloop I tried this method previous also but ends with bootloop @serajr m using ur framework
xperia l 4.2
yash989 said:
if I add id 2
than bootloop I tried this method previous also but ends with bootloop @serajr m using ur framework
xperia l 4.2
Click to expand...
Click to collapse
Your framework support colorizable function? Here is tut how to port if yes try to sign framework-res.apk
KuaQ said:
Your framework support colorizable function? Here is tut how to port if yes try to sign framework-res.apk
Click to expand...
Click to collapse
yes it supports
before it shows framework icon
but after compile it shows only robot icon
yash989 said:
if I add id 2
than bootloop I tried this method previous also but ends with bootloop @serajr m using ur framework
xperia l 4.2
Click to expand...
Click to collapse
I have no framework released!!
yash989 said:
yes it supports
before it shows framework icon
but after compile it shows only robot icon
Click to expand...
Click to collapse
maybe try to use another apktool version
serajr said:
I have no framework released!!
Click to expand...
Click to collapse
i mean cnt roms framework
You made the Portal News! http://www.xda-developers.com/android/honami-ui-guide/
Nice work! :highfive:
Good work @KuaQ ! Very good !:good:
Awesome guide
I use LG P713 (4.1.2) is it work for me?
It did not work with me
More'll try again :good:
Good !
Well Done ! @KuaQ
Tutorial is written clearly and everything is understandable.
That is AWESOME!!!!!!!!!!!!:victory:

Categories

Resources