What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Theming Guide for changing system text settings.

I am starting to believe that I just don't understand coding and I will never obtain what I am after. Why does it have to be so hard to change the entire system font color to red or pink from it's standard stock white. I see you guys doing it so easy you might as well just be breathing air. I am trying but right now I just don't get it.
 
I have the java thing figured out. I setup the environment variables to show c:program files\java\jre6\bin

I have adb and apk manager both on c: I am putting framework-res.apk into the ...for modding folder. I run script, clear workspace, can't find adb. hit option 9.

It tells me it can't find it.

you have to set your variables for sdk as well as java

As an example I have a folder called androidsdk in my c drive and tools is inside that folder so when I set the environment variable it looks like this

C:\androidsdk\tools

java for me looks like this

C:\Program Files (x86)\Java\jdk1.6.0_20

C:\Program Files (x86)\Java\jdk1.6.0_20\bin

You can go to yoru command prompt and type java and see if a bunch of stuff that has commands for things pops up. If it does then you have java set up properly.
Also it looks like you have the path set for the runtime environment. You need to have jdk which is development kit.Anyone please Correct me if i am wrong on any of this because I am no expert just tryign to help a little. Below is the difference between the two and it also contains a link to download jdk

http://www.java.com/en/download/faq/jre_jdk.xml
 
Last edited:
Thanks alot for the help. I am going to start frsh. Except for uninstalling java, I have re downloaded all the stuff I need (except the jdk) which I will do. I will install tomorrow night after work and goto town.

It looks like I also have the variables for Java set wrong since I am missing the jdk..lol

One question though for clarity. Once I set the path for unzipping c:\androisdSDK DO I need to make a CLASSPATH and a PATH for it? I am just assuming that's what you meant when you said I have to set the variables for it as well.
 
the reason i didnt think i could use the OP attachment xml files for the lockscreen is because the rom im using at the bottom shows some music control codes

Code:
<?xml version="1.0" encoding="UTF-8"?> 
<RelativeLayout android:gravity="center_horizontal" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent" 
  xmlns:android="http://schemas.android.com/apk/res/android" 
  xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock"> 
    <TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" /> 
    <TextView android:textAppearance="?textAppearanceSmall" android:textColor="#ffff6600" android:id="@id/emergencyCallText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="8.0dip" android:text="@string/emergency_calls_only" android:layout_below="@id/carrier" android:layout_alignParentRight="true" /> 
    <com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="52.0dip" android:layout_below="@id/carrier"> 
        <TextView android:textAppearance="?textAppearanceMedium" android:textSize="72.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" /> 
        <TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" /> 
    </com.android.internal.widget.DigitalClock> 
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_below="@id/time" /> 
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" /> 
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" /> 
    <TextView android:textAppearance="?textAppearanceSmall" android:id="@id/customMsg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="4.0dip" android:layout_marginRight="24.0dip" android:layout_below="@id/status2" /> 
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="24.0dip" android:layout_marginTop="12.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/customMsg" /> 
    <com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:layout_alignParentBottom="true" /> 
    <Button android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="80.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_alignParentBottom="true" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" /> 
    <ImageButton android:id="@id/musicControlPlay" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_play" android:layout_alignParentBottom="true" android:layout_centerInParent="true" /> 
    <ImageButton android:id="@id/musicControlPause" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_pause" android:layout_alignParentBottom="true" android:layout_centerInParent="true" /> 
    <ImageButton android:id="@id/musicControlPrevious" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_previous" android:layout_toLeftOf="@id/musicControlPause" android:layout_alignParentBottom="true" /> 
    <ImageButton android:id="@id/musicControlNext" android:background="@color/transparent" android:padding="10.0px" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:src="@drawable/ic_media_next" android:layout_toRightOf="@id/musicControlPause" android:layout_alignParentBottom="true" /> 
</RelativeLayout>

side not,where it says custom message how can i make it bigger,plus ill have to add some color code in order to change its tex color, im catching on,lol although according to this i havent made any edits but i have,just isnt finished yet

For that line for custom message just add this string android:textSize="22.0sp" but make the 22 what ever size you want. That is a good question.
 
Was rereading this how to like I had never seen it before hoping I missed something and I did. I misread something and now I need to know how to do it correctly

Download and extract Apk Manager. I usually place this in the tools directory of the Android SDK. If you do this you need to set the environment path for the directory for aapt.exe of apktool.jar to work correctly.

ok so is that an addition to path like ;c:\androidsdk\tools\other\
cause aapt.exe and apktool.jar are both in there.

And for the record, I do realize that when you guys read this you have to be thinking i am an idiot. I'm ok with that as long as I get it to work. :)
 
Was rereading this how to like I had never seen it before hoping I missed something and I did. I misread something and now I need to know how to do it correctly

Download and extract Apk Manager. I usually place this in the tools directory of the Android SDK. If you do this you need to set the environment path for the directory for aapt.exe of apktool.jar to work correctly.

ok so is that an addition to path like ;c:\androidsdk\tools\other\
cause aapt.exe and apktool.jar are both in there.

And for the record, I do realize that when you guys read this you have to be thinking i am an idiot. I'm ok with that as long as I get it to work. :)

;c:\androidsdk\tools\other\

Thats how mine looks also. :) but like i said you can make the folder called android or whatever you want it to be called so if yours is different then dont put exactly what i have. It was just to give an example

And for the sdk you only need to set the path. not class path.

So you should have a path for jdk, have a path for sdk tools, and have a path to aapt.exe and apktool.jar which you have.
 
Last edited:
Sneaky for the Key guard tab xml I just added call out to some color codes here what it looks like after I added my own entries. I have underlined what I changed also thats the same code to center the time and date and move the Verizon text to the right.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center" android:id="@id/root" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock">
    <TextView android:textAppearance="?textAppearanceMedium" android:textSize="22.0sp" android:ellipsize="marquee" android:gravity="bottom|right|center" android:id="@id/carrier" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10.0dip" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="false" />
    <TextView android:textAppearance="?textAppearanceSmall" android:textColor="#ff000000" android:id="@id/emergencyCallText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:layout_marginRight="8.0dip" android:text="@string/emergency_calls_only" android:layout_below="@id/carrier" android:layout_alignParentRight="true" />
    <com.android.internal.widget.DigitalClock android:id="@id/time" android:paddingBottom="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="55.0dip" android:layout_marginTop="70.0dip" android:layout_below="@id/carrier">
        <TextView android:textAppearance="?textAppearanceMedium" [B][U]android:textColor="#ff428fab" [/U][/B]android:textSize="90.0sp" android:ellipsize="none" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
        <TextView android:textAppearance="?textAppearanceMedium" [B][U]android:textColor="#ff428fab"[/U][/B] android:textSize="30.0sp" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" android:layout_toRightOf="@id/timeDisplay" android:layout_alignBaseline="@id/timeDisplay" />
    </com.android.internal.widget.DigitalClock>
    <TextView android:textAppearance="?textAppearanceMedium" [B][U]android:textColor="#ff428fab"[/U][/B] android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="93.0dip" android:layout_below="@id/time" />
    <TextView android:textAppearance="?textAppearanceMedium" [B][U]android:textColor="#ff428fab"[/U][/B] android:id="@id/status1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="93.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/date" />
    <TextView android:textAppearance="?textAppearanceMedium" [B][U]android:textColor="#ff428fab"[/U][/B]  android:id="@id/status2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="93.0dip" android:layout_marginTop="4.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status1" />
    <TextView android:textAppearance="?textAppearanceMedium" android:id="@id/screenLocked" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="93.0dip" android:layout_marginTop="12.0dip" android:drawablePadding="4.0dip" android:layout_below="@id/status2" />
    <com.android.internal.widget.SlidingTab android:orientation="horizontal" android:id="@id/tab_selector" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:layout_alignParentBottom="true" />
    <Button android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="20.0dip" android:drawableLeft="@drawable/ic_emergency" android:drawablePadding="8.0dip" android:layout_alignParentBottom="true" android:layout_centerInParent="true" style="@style/Widget.Button.Transparent" />
</RelativeLayout>
So after making all those changes your LS should look like this

snap20100803132352.png






Dont forget landscaper as well

bgill, thanx for posting that code. got most of that figured out but i noticed you used margin increase to move the clock and date texts.
Is it possible to just add in android:layout_centerInParent="true" ?
I haven't seen an individual call for it used but wouldn't it work on the entire date_time area? I'm assuming the xml layouts work somewhat like html.

and did you hide those tabs in code or just use transparent .pngs? I'm asking cause I want to do something like that with the pattern unlock screen where you can't see the dots.
 
figured it out but my "verizon wireless" label didnt change, must of missed one.
i would like to make the custom message text bigger

once your framework is compiled you can change the "Verizon Wireless" text to whatever you want. That is located in the res/xml/eri.xml
 
figured it out but my "verizon wireless" label didnt change, must of missed one.
i would like to make the custom message text bigger

once your framework is compiled you can change the "Verizon Wireless" text to whatever you want. That is located in the res/xml/eri.xml

I think he was talking about the color! and if you edit that xml before you compile you aren't limited to the number of letters! I had a whole sentence and one point!!!
 
figured it out but my "verizon wireless" label didnt change, must of missed one.
i would like to make the custom message text bigger

once your framework is compiled you can change the "Verizon Wireless" text to whatever you want. That is located in the res/xml/eri.xml

I think he was talking about the color! and if you edit that xml before you compile you aren't limited to the number of letters! I had a whole sentence and one point!!!

lol! Does the transparent hack work for things other than Contacts.apk. If so would u like to share? :)
 
once your framework is compiled you can change the "Verizon Wireless" text to whatever you want. That is located in the res/xml/eri.xml

I think he was talking about the color! and if you edit that xml before you compile you aren't limited to the number of letters! I had a whole sentence and one point!!!

lol! Does the transparent hack work for things other than Contacts.apk. If so would u like to share? :)


So far I got the contacts.apk and the music.apk done. Ill share the info after this sapphire 1.0 release I'm in the process of porting about 10 themes and still work on my new theme. I won't be around ofr a few days.
Sent from my Droid using Tapatalk
 
bgill, thanx for posting that code. got most of that figured out but i noticed you used margin increase to move the clock and date texts.
Is it possible to just add in android:layout_centerInParent="true" ?
I haven't seen an individual call for it used but wouldn't it work on the entire date_time area? I'm assuming the xml layouts work somewhat like html.

and did you hide those tabs in code or just use transparent .pngs? I'm asking cause I want to do something like that with the pattern unlock screen where you can't see the dots.

That is what is in the code for emergency call button to center it. So give it a try and see how it goes.
 
Back
Top