Is there a way to change the color of the font on your phone? Also what do i need to click in font installer to change all my fonts not just some fonts? Tia
Sent from my EVO using xda premium
wileout said:
Is there a way to change the color of the font on your phone? Also what do i need to click in font installer to change all my fonts not just some fonts? Tia
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I don't know about the color part, but if you hit menu on the main screen of font installer then preferences, you can choose which fonts to overwrite/ replace. Hope that helps. Make a backup I guess in case you don't like the way something looks when you're done.
ducky1131 said:
I don't know about the color part, but if you hit menu on the main screen of font installer then preferences, you can choose which fonts to overwrite/ replace. Hope that helps. Make a backup I guess in case you don't like the way something looks when you're done.
Click to expand...
Click to collapse
Yea figured that part about changing fonts right I typed this up...still wanna know if I change colors tho lol
Sent from my EVO using xda premium
Well you will first need to decompile the framework apk's and edit the text color on those as many apps call to framework-res.apk/com.htc.resources.apk for text color then where you don't see changes you will need to decompile the particular apk associated with the place you like to change it. For example, statusbar related text is found in SystemUI.apk. Once you decompile it go to the color folder and you will see list_item_primary_text.xml, open it and you will see
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="[COLOR="red"]@color/primary_text_disable"[/COLOR] />
<item android:color="[COLOR="Red"]@android:color/primary_text_dark[/COLOR]" />
</selector>
notice the sections marked in red.
The first one @color/primary_text_disable tells you that the color code is coming from within the app so go to /res/values/colors.xml and open it. you will see the following code
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="status_bar_recents_app_label_color">#ffffffff</color>
<color name="notification_list_shadow_top">#80000000</color>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
[COLOR="red"]<color name="primary_text_disable">#ff4c4c4c</color>[/COLOR]
<color name="secondary_text_disable">#ff4c4c4c</color>
<color name="multiply_color">#ffbdff67</color>
</resources>
here is the color code its referring to. Now you can either change the color code here or you can just change android:color="@color/primary_text_disable" to android:color="colorcodehere" (example ff000000)
Now notice the <item android:color="@android:color/primary_text_dark" /> on the first code...this tells us that the code is being called upon from the framework.
You can also change "@android:color/primary_text_dark" to "colorcodehere" or to "@color/primary_text_disable" to make the color reference internal in the app.
There are many different ways to get the changes you want...some changes are a bit harder as they are coded through smali.
I suggest you start with a non-framework apk and make the color references internal.
Hope this helps
eg1122 said:
Well you will first need to decompile the framework apk's and edit the text color on those as many apps call to framework-res.apk/com.htc.resources.apk for text color then where you don't see changes you will need to decompile the particular apk associated with the place you like to change it. For example, statusbar related text is found in SystemUI.apk. Once you decompile it go to the color folder and you will see list_item_primary_text.xml, open it and you will see
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="[COLOR="red"]@color/primary_text_disable"[/COLOR] />
<item android:color="[COLOR="Red"]@android:color/primary_text_dark[/COLOR]" />
</selector>
notice the sections marked in red.
The first one @color/primary_text_disable tells you that the color code is coming from within the app so go to /res/values/colors.xml and open it. you will see the following code
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="status_bar_recents_app_label_color">#ffffffff</color>
<color name="notification_list_shadow_top">#80000000</color>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
[COLOR="red"]<color name="primary_text_disable">#ff4c4c4c</color>[/COLOR]
<color name="secondary_text_disable">#ff4c4c4c</color>
<color name="multiply_color">#ffbdff67</color>
</resources>
here is the color code its referring to. Now you can either change the color code here or you can just change android:color="@color/primary_text_disable" to android:color="colorcodehere" (example ff000000)
Now notice the <item android:color="@android:color/primary_text_dark" /> on the first code...this tells us that the code is being called upon from the framework.
You can also change "@android:color/primary_text_dark" to "colorcodehere" or to "@color/primary_text_disable" to make the color reference internal in the app.
There are many different ways to get the changes you want...some changes are a bit harder as they are coded through smali.
I suggest you start with a non-framework apk and make the color references internal.
Hope this helps
Click to expand...
Click to collapse
Thanks bro that helps a ton now to just go thru and do it to each one of my 100 apps lmao
Sent from my EVO using xda premium
Hello,
I would like to display a header bar in all my activities (with background image, title, back and home buttons)
I began with Window.FEATURE_CUSTOM_TITLE but the height must be fixed in dp units for example and I'm not sure
it will display correctly on all the different devices.
So I'm trying with the Window.FEATURE_NO_TITLE and XML view.
Is there a better way than the <include /> ?
Or maybe I'm doing this the wrong way ?
Theming Your Lockscreen
Have you ever thought of having your own themed Lockscreen?
With this guide you can have your own themed Lockscreen…This guide doesn’t teach you about decompiling/compiling apk’s or jar files as there are a lot of guides for decompiling apk’s on XDA.
Understanding Your Lockscreen :
The codes that make your Lockscreen work or control your Lockscreen are present in android.policy.jar but we are not going to touch it.
The xml’s and png’s that take care of the look of the Lockscreen are present in lidroid-res.apk* in Custom Roms and framework-res.apk in Stock Roms. These are the files that we are going to edit to theme our Lockscreen.
The xml’s are present in res/layout while the png’s are present in both drawable-hdpi and drawable-ldpi.
* In custom roms, the name may vary. For example, in Hyperion Rom it’s hyperion-res.apk and in Creed its creed-res.apk.
Theming Your Lockscreen:
A list is given below which shows the files that you need to edit to theme that corresponding Lockscreen:
Note :
> I did not include .9.png’s in the list.
> I will add Samsung lockscreen later.
Sliding Tab Lockscreen :
XML’s
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
PNG’s
In drawable-hdpi:
ic_jog_dial_unlock.png
ic_jog_dial_sound_off.png
ic_jog_dial_sound_on.png
ic_jog_dial_vibrate_on.png
jog_tab_target_gray.png
jog_tab_target_green.png
jog_tab_target_yellow.png
In drawable-ldpi:
jog_tab_left_confirm_gray.png
jog_tab_left_confirm_green.png
jog_tab_left_confirm_red.png
jog_tab_left_confirm_yellow.png
jog_tab_left_normal.png
jog_tab_left_pressed.png
jog_tab_right_confirm_gray.png
jog_tab_right_confirm_green.png
jog_tab_right_confirm_red.png
jog_tab_right_confirm_yellow.png
jog_tab_right_normal.png
jog_tab_right_pressed.png
Lense Lockscreen :
PNG’s
In drawable-hdpi:
lense_square_bg.png
Rotary Lockscreen :
XML’s
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
PNG’s
In drawable-hdpi:
jog_dial_bg.png
jog_dial_dimple.png
jog_dial_dimple_dim.png
jog_dial_dimple_dim_rev.png
jog_dial_arrow_long_left_green.png
jog_dial_arrow_long_right_red.png
Rotary Revamped :
XML’s
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
PNG’s
In drawable-hdpi:
jog_dial_bg_rev.png
jog_dial_bg_rev_down.png
jog_dial_dimple.png
jog_dial_dimple_dim_rev.png
jog_dial_dimple_rev.png
Ring Lockscreen :
XML’s
keyguard_screen_tab_unlock.xml
keyguard_screen_tab_unlock_land.xml
PNG’s
In drawable-ldpi:
jog_ring_ring_normal.png
jog_ring_ring_pressed_gray.png
jog_ring_ring_pressed_green.png
jog_ring_ring_pressed_red.png
jog_ring_ring_pressed_yellow.png
jog_ring_secback_normal.png
Editing PNG's and XML's
Editing PNG’s:
Note :
PNG - Portable Network Graphic
Editing png’s is very important in Theming because the png which you edited will be showed in the lockscreen. I recommend you to use Adobe Photoshop, Gimp or Paint.net to edit png’s..
Note : If want to hide a png, don’t delete it. Just make it transparent or you will face compiling problems.
Editing XML’s:
XMLs control many functions in Android. We will change binary XML into a readable XML file to make our edits, which will usually result in layout of the lockscreen. So to edit an xml, we need to decompile it using apktool.
In a lockscreen, hex codes are used to give the text a color. You can use hex codes to change the color of Clock / Date / Carrier Text / Custom Text.
You should be really careful while editing xml’s. They can cause apk compiling errors. I recommend you to use Notepad++ for editing xml’s.
Note :
dip - Density-independent Pixels
dp - Density-independent Pixels
sp - Scale-independent pixels
I have given below some codes/lines that you normally need to edit in order theme your lockscreen.
Note : "object" refers to the object where you found the line.
android:background="@drawable/x"
This will set the png named x as the background of the lockscreen.
android:id="@id/x"
I don't know!
android:layout_below="@id/time"
This will bring the object below the time.
android:text="@string/x"
This will display the string x as a text in the lockscreen.
android:background="#ff000000"
This will set this hex code color as the background of the lockscreen.
android:textColor="#ddff00"
This will change the color of the object.
android:shadowColor="#c0000000"
The color of the shadow that should be displayed near the object.
android:layout_width="wrap_content"
The width of the object will display big enough to enclose its content only.
android:layout_width="fill_parent"
The width of the object will display as big as its parent, and fill in the remaining spaces.
android:layout_height="wrap_content"
The height of the object will display big enough to enclose its content only.
android:layout_height="fill_parent"
The height of the object will display as big as its parent, and fill in the remaining spaces.
android:gravity="center"
The position where the object should be placed. It can be either left / center / right.
android:singleLine="true"
Force the text to a single horizontal line instead of letting it wrap onto multiple lines.
android:textAppearance="?android:textAppearanceMedium"
Appearance of the text will be Medium.
android:textAppearance="?android:textAppearanceSmall"
Appearance of the text will be Small.
android:layout_marginLeft="x.xdip"
Specifies extra space on the left side of this view.
android:layout_marginRight="x.xdip"
Specifies extra space on the right side of this view.
android:layout_marginTop="x.xdip"
Specifies extra space on the top side of this view.
android:layout_marginBottom="x.xdip"
Specifies extra space on the bottom side of this view.
android:textSize="x.xsp"
The size of the text. It can be any text (clock / date / carrier text / custom text)
Lockscreen Modz
RESERVED FOR MODz...
One of the best guide ever
san122 said:
One of the best guide ever
Click to expand...
Click to collapse
Thanks
Regards,
Ganesh
WIIL TRY to mod my lockscreen
Ganesh A said:
Thanks
Regards,
Ganesh
Click to expand...
Click to collapse
Thanks to u for this useful post
Sent from my GT-S5360 using Tapatalk 2
Shane said:
WIIL TRY to mod my lockscreen
Click to expand...
Click to collapse
All the best...
Regards,
Ganesh
Nice...
-Feel Like A Sir-
???
---- by ----
Ganesh,
R.C. @ XDA
Nice guide sir
Thank u
Keep updating
Bro, thanks for the guide..
Will Try,,
Afrizal Firmansyah said:
Bro, thanks for the guide..
Will Try,,
Click to expand...
Click to collapse
Go on...
Sent from my GT-S5360 using Tapatalk 2
I want to modify the lense lockscreen. As in, the color of clock and the distance of clock and the pull down slider.
I don't see any layout files for it, any idea where to modify it in smalis?
good job :fingers-crossed:
its an really awesome guide..
u have given me a great idea m also going to make a guide on " how to get ics style notification on gingerbread"
Hi guys,
I am developing a homepage for my school's video project (videowerden.de)and I wanted to integrate support for Homescreen Web App Icons on iOS and Android.
I have already managed to have our custom icon displayed when you add our website to homescreen on a mobile phone or tablet (via Chrome browser), but now I have changed the icon (I was not satisfied with the first version) and the changes won't apply!
Everytime I delete the Web App icon from Homescreen and try to set it up again, the old icon reappears! It seems to be cached somewhere on my device (HTC One)
Clearing my Chrome's chache or restarting the phone won't help, what can I do?!?
Here's the code I used in my website's head.html:
HTML:
<!-- iOS and Android Homescreen Icons -->
<link rel="shortcut icon" sizes="196x196" href="icon-196x196.png">
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon.png" />
Icons are stored in website's root directory.
ANY IDEAS?!
I'm not sure how to put this to words in any understandable way so I'll give my latest attempt on a line of my appfilter.xml:
Code:
<item drawable="{'banking1', 'banking2', 'banking3', 'banking4'}" component="ComponentInfo{com.bank.name.and.stuff/banky.bank}" />
Is it possible to get 1 component using multiple drawables? for the banking app I want to include a coloured, grey, black, and white version of the icon in the Icon Pack but I'm super duper new to any of this and can't find it in any tutorial or wiki so I hope somebody here has an idea.