yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] Tired Storeman:
Hey mate thank-you for the info about .9.pngs,

i wasn't aware that they also shrink to fit.

I thought because the images on the larger phones were different dimensions to that of the S2 they wouldn't fit on S2, so they would need to be resized.

Again thank-you for todays lesson, i shall go and do some muckin around with .9.pngs:)
[Galaxy S II General] Tired Storeman:
Can anybody tell me which xml file i need to edit to change the width of the tw_switch_thumb containers, i need to make it slightly larger.

I have taken some .9.pngs from Rixsta Black iLLusioN 1.3 For MI1 I9505 theme (for personal use) on NeatRom v5

and have made my own thumb switches from non thumb switch .9.pngs (because i cannot make .9.pngs)

As you can see in the screen shot they stretch slightly to big for the thumb switch container so i thought i could play around

with the container to make them fit.

Any help would be greatly apreciated.
[Galaxy S II General] encik_racun:
Do we have universal systemui for 24 toggle? I mean a ready made system ui that can be push to any 4.1.2 rom?
[Galaxy S II General] engloa:
AFAIK don't think so:(

€πg£0@
[Galaxy S II General] SkyaTura:
Far as i know systemui depends of framework compability, so, every rom has different ones... why don't mod your sysui?
[Galaxy S II General] HighlanderZA:
Hi there bud. Send them to me I'll make them fit the s2. Look nice. Or I'll try! :rolleyes::rolleyes::D:beer: edit;send me all those pngs. Even the fw ones, I like the look.

Sent from 'The Highlands' via the tartan highway.
[Galaxy S II General] HighlanderZA:
Coding boffins - attention please!

Tired Storeman and I are having a problem getting this stuff to 'fit'.

He is modding the switches on the Settings Menu to look like the first one below.

As you can see the switches are not displaying correctly.

I've looked at them too and sizing of the pngs, 9.patch or normal, does not appear to be the issue.

Those pngs of his are even smaller than mine and where mine work okay, his don't.

Now my coding skills and locating of said coding snippets leaves a lot to be desired SO

please help!

Is there a xml or smali code laying out the settings switches somewhere that he needs to change to get this layout sorted?

I'm lost here!:eek:
[Galaxy S II General] engloa:
Look in styles.xml of framework-res.apk;)

€πg£0@
[Galaxy S II General] Tired Storeman:


Don`t suppose you could give me a hint as to what thumb switches are refered to as, in the style.xml
[Galaxy S II General] Javho:
Deleted xd
[Galaxy S II General] Tired Storeman:
Can anybody tell me if i can use a .9.png as a background for something that originally has a background color?

I would like to change the background of No Notification and Ongoing on the notification screen
[Galaxy S II General] remuntada78:
take a look at this http://xdaforums.com/showthread.php?t=2078585
[Galaxy S II General] cbucz24:
Sure you can, but its a bit more involved than just making an image.

First you make your images. Patch them correctly.

In the tw_extended you have to change the hex to the drawable name you created.

This will be done replacing the hex value with drawable@myimage.png

Then you will need to do one a a few things an this is where it gets tricky. If you delete the public.xml it will recreate it with a new set if ids but this can break everything if it creates new ids for already defined items.

You have to now add the image to the public.xml

Probably the best way to do it without breaking anything else is to figure out which number isn't used in the xml and add the image an create a new id for it. It takes quite a bit of time to figure this out. There are ranges assigned to certain types of images that you have to stick too.

Lastly you have to use the newly created id to add the image to ids.xml.

When your all done you have to sign the apk with a system key. Push or flash and your set.

Like I said, its a longer process but like anything it can be done.
[Galaxy S II General] Tired Storeman:
Wow, thanks mate, really appreciate, the mini tutorial, :good:sounds like it might be a weekend job when the rugrats are out of the house for a few hours.

Think i might need at least a few hours of consentration for this one.:eek:

The images should be all good, i have pulled them from an S4 theme.

A question regarding the images, if i may,

Can i use the same image for both Ongoing and No Notification ie drawing it from the same location

or should i use 2 seperate images, if so can i rename a .9.png without breaking anything?
[Galaxy S II General] Goldie:
He can just add the image to the apk and compile it. It will give the image an id automatically. You should never need to manually modify public :)

It wont need to go on in ids.xml as its not being acted on by the classes or the id used by the expanded xml as a marker. So purely adding the image and changing expanded to drawable@ like you said should suffice :)
[Galaxy S II General] remuntada78:
like this http://xdaforums.com/showthread.php?t=2203166 section 14?
[Galaxy S II General] SkyaTura:
Is it possible add a button on on going cart to collapse and expand on going nOtification? They're really annoying but I need them :/

Sorry about my English
[Galaxy S II General] Tired Storeman:
Let me see if i have this right, all i need to do is

Decompile SystemUI.apk

Past a copy of my ongoing.9.png into drawable-hdpi

change

to

compile SystemUI.apk

Copy over

META-INF folder

and

AndroidManifest.xml

compile again then push compiled System Ui.apk to phone.

Does this sound correct?
[Galaxy S II General] Goldie:
Looks good to me :)
[Galaxy S II General] Tired Storeman:
I get this error, if i follow the above steps:confused:
[Galaxy S II General] Goldie:
Did you delete something? You should be able to just add an image. Add just the image to fresh ui and compile. Should work fine I done it tons of times. Then decompile and make your change to expanded.
[Galaxy S II General] tdunham:
Why are you compiling twice? Recompiling second time will alter file signature it looks like to me.

First of all, you are able to recompile systemui succesfully without making any changes?
[Galaxy S II General] remuntada78:
for decompile and compile i use apktool 1.52 tool and when i compile i take only the apk in dist folder and put it in the phone
[Galaxy S II General] tdunham:
There are several methods but I find best method (for me ;)) is to only remove changed code and reinsert into back into a virgin untouched apk so that signature remains intact.

For example:

You change something in res/values folder. The only file you would need to extract and insert is resources.arsc.

You change something in smali, the only file you would need to extract and insert is classes.dex.

Of course, you can disable signature verification in rom entirely to overcome this but it is good practice to try to keep original signatures intact using above method also. Especially for custom modifications that other users may use or find useful.
[Galaxy S II General] cbucz24:
The I forgot about the ids, I didn't have a pc to look in it an couldn't remember what was there...

But the main reason I said to manually edit the public is cuz of the error he got which ive had before. If the public has to rebuild the xml there is always a chance of the id it created getting attached to the wrong file. Then thats when it has all kinds of issues.

I used a programming calc an added it up to see the correct id to use. Its a lil back an forth finding whats the last one. Also if that u cant just use any number since there are predefined ranges for them.

Maybe I did it the long way but it worked for me
[Galaxy S II General] Tired Storeman:
Could i ask a huge favour, could somebody check my .9.png and see if it is okay

and if it is could they make a backround with it for Notifications, No Notifications and Ongoing in tw_status_bar_expanded

The .9.png is from an S4 theme that i am putting on my S2.

Edit- might help if i post the files, hey:o
[Galaxy S II General] Goldie:
That sure is the long way. I did it like that for a while until I realised this. Whenever you need to add anything to an apk. Just add it and compile. Works for anything, from images to strings etc. Decompile and look at public and it will have assigned the next available id. Saves a ton of hassle finding it yourself :)
[Galaxy S II General] cbucz24:
Wow well I'll have to try that here soon as I think my next project includes some deeper edits.

I had to use the calc, change to programming mode, figure out the last used id an type it in, then add "1" to get the next number. Then...do a quick search an make sure its id isnt already used...lol

I remade the secwallpaper an it took quite a while. ;)
[Galaxy S II General] Tired Storeman:
I am porting an S4 theme to S2 but have come across a problem, the buttons on the S4 theme are black with white, however i am using NeatRom v5 which has white buttons with black text.

Any chance somebody could tell me how to change the button text to white so it is visable on black buttons.

The pressed button text is white
[Galaxy S II General] HighlanderZA:
Have a look in tw_popup_button_text_holo_dark.xml and tw_popup_button_text_holo_light.xml to change the text colors.

These are in FW res\color\.
[Galaxy S II General] kintwofan:
Quick to, you can copy the entire colors folder from the s4 to your theme and you'll be 90% correct in coloring. That's what I did and it looks pretty darn good
[Galaxy S II General] cbucz24:
Ok I am in need of some assistance b4 I go nuts.

I cant find where my items are overlapping and it "seems" like ive looked everywhere. Obviously I haven't otherwise I would have found it.

Im attaching the pic of what I mean. An yea I know, after I get that set I'll fix the bg cuz its hard to read the noti
[Galaxy S II General] HighlanderZA:
Hey there bud - a bit difficult to see the overlaps with that bg. Maybe flash a plain black/gray one would make it easier.:silly:

But as a start I would be looking at the 'padding' and 'margin' parameters for each section to try line it up.

I need to rebuild my bottom toggle this weekend to use on 5.0.1 so will be looking at it later.

Will then be able to help more directly.:eek:

Stuff like:

android:layout_marginTop="0.0dip"
android:paddingBottom="4.0dip"
[Galaxy S II General] Goldie:
Heirarchyviewer in tools folder of sdk will help you visualise the overlaps and the item ids etc. Should make it pretty obvious :)
[Galaxy S II General] cbucz24:
wow that is some cool stuff. that is actually a depreciated tool as a standalone. it gave me an error. lol

told me to use android device monitor shown here

i know ive spent hours looking thru code trying to find stuff. thanks a ton :highfive:
[Galaxy S II General] remuntada78:
Hi , i tried to do a mod whit my SecSettings.apk and i get this error

View attachment logcat.txt
[Galaxy S II General] Goldie:
You have a verify error. Some method is wrong and its kicking a class out. Look further up the log for errors containing VFY. They are the issue
[Galaxy S II General] remuntada78:
I apologize for my ignorance ,what mean VFY.

I've checked my logcat and not found VFY

View attachment logcat.zip

edit:i've found it thanks
[Galaxy S II General] Tired Storeman:
Thanks Goldie, really appreciate you help:good:, took me a while to realize that the .9.pngs needed to be decompiled before adding them :o

Couldnt workout why i was getting heaps of errors whilst trying to compile SystemUi.

But all good now:D
[Galaxy S II General] Javho:
Hi anyone knows how can I the circle image's patterns of Samsung rom? To Make it look mora than jelly bean original
[Galaxy S II General] cbucz24:
something has gotten lost in translation.

try explaining again, an if possible upload an image with what your talking about and we will try and help.:p
[Galaxy S II General] Javho:
my lockscreen with pattern lock looks like this

and i need to look like this
[Galaxy S II General] cbucz24:
Lockscreen control images are in the framework-res
[Galaxy S II General] Javho:
[MENTION=1400108]cbucz24 [/MENTION] Yes but I only can change the center point, the halo in gray (the big circle) I can't change because I don't know that archive I need change :/
[Galaxy S II General] engloa:
Look for pngs that starts with indicator_code_lock_point_area_ inside framework-res.

There'll be about 8 of them and I think what you're trying to change will be named indicator_code_lock_point_area_green and indicator_code_lock_point_area_green_holo or something of that nature
[Galaxy S II General] gaosphappy:
Hay guys I'd like to ask about vrthemes. I can't find a good explanation/guide as to how they work. I have a rough guess but that just creates more ? Like I'm thinking of making a battery mod.. to make it work x platform ie neat 4.x and 5.x vrtheme seems like were I want to go but does vrtheme allow me to replace single xml files or must it still be full files like systemui. Sorry if that's a real noob question and thanks in advance :thumbup:

sent from :eek: Using XDA Premium 4
[Galaxy S II General] HighlanderZA:
Hey there bud - DL one from my thread and have a look inside it.

Basically - in the vrtheme folder inside the zip you will create folders for each of the APKs you are updating.

So for instance your vrtheme folder would have the following inside it if you wanted to add xml stuff to SystemUI.apk:

vrtheme\preload\symlink\system\app\SystemUI.apk\res\layout\

and in here would be your xxxxx.xml files.

Say you wanted pngs in res\drawable-hdpi?

vrtheme\preload\symlink\system\app\SystemUI.apk\res\drawable-hdpi\

and in here would be your xxxx.png files.

You make FOLDERS inside the vrtheme which follow the exact path to the files you are changing.

Hope that makes sense!!!

If not I'll do some screen prints for you too!
[Galaxy S II General] gaosphappy:
Fantastic explanation m8 thank you. Was fairly much as I thought. Will download one later and have look see. Thanks again. :thumbup::thumbup::thumbup:

sent from :eek: Using XDA Premium 4
[Galaxy S II General] HighlanderZA:
Thanks and anytime - NB that you will need the VRTheme script in your zip to do the install, so make sure you get that sorted correctly as well.

Very important indeed.

Have a look at the VRTheme thread for more info http://xdaforums.com/showthread.php?t=1207017 - forgot it was on my thread!!!
[Galaxy S II General] avirk:
+1

Mate you can change any xml file using vrtheme just use their script and create appropriate folder inside vrtheme folder. Say you want to make battery mod than this would be the structure

Vrtheme/preload/symlink/system/SyatemUI.apk/res/drawable-hdpi

And put all pngs in that folder and flash you done. Sometime you need to decompile the apk and then compilebit and have to flash resources.arsc file along with xml files which can't be read without decompile.

As Highlander says download a file for example and look into it. Vrtheme needs extra script files rather than updater scriptbso be carefull.
[Galaxy S II General] Tired Storeman:
Hi guys, i would like to ask for help again if i may.

I am trying to reduce the width of the background behind the "Notification" header text on the notification screen.

I have tried setting "120.0dip" to all of the

android:layout_width="fill_parent"

in

<com.android.systemui.statusbar.policy.NotificationRowLayout android:id="@id/onGoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/tw_notification_row_min_height" />

<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="@drawable/notification1" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">

<RelativeLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">

<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="left|center" android:id="@id/latestNotificationText" android:paddingLeft="11.0dip" android:layout_width="180.0dip" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="true" />

<TextView android:textSize="@dimen/status_bar_expanded_notification_clear_button_text_size" android:textColor="@color/tw_status_bar_clear_btn_text" android:gravity="center" android:id="@id/clear_all_button" android:background="@drawable/tw_btn_default_small" android:padding="0.0dip" android:focusable="true" android:clickable="true" android:layout_width="@dimen/status_bar_expanded_clear_button_width" android:layout_height="fill_parent" android:layout_marginRight="0.0dip" android:text="@string/status_bar_clear_all_button" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />

</RelativeLayout>

but none of them reduce the background width.

I have changed the background from a color to a png which is 480 pixels wide.

I have checked through values/dimens, in there i can find

tw_notification_row_min_height">64.0dip</dimen>

but nothing about

tw_notification_row_width, if this is what i am neeeding to change,

if it is not would anybody be able to tell me what i need to change to reduce the background width.

Any help would be greatly appreciated
[Galaxy S II General] cbucz24:
Are you talking about the line where it says "notifications"?

And you want to make it not go all the way across the dropdown?

That item is inside a container. Normal allowed sizing is to fill it across. If you shrunk it down, where would you then put the clear button? Do you just want the single text displayed inside your image?
[Galaxy S II General] Tired Storeman:
Hey mate, thankyou for the reply, basically i am trying to achieve this, with the background showing between the word Notification and the Clear button.

And reduce the size of the Clear button(which i have already figured out how to do)
[Galaxy S II General] Goldie:
Another guide thread for you to link BBB.... http://xdaforums.com/showthread.php?t=2488033
[Galaxy S II General] bombaybadboy:
Thats great work m8 I will add it asap thankyou, just got my pc installing Cygwin at this moment but will add straight after :)

Added m8 just one question tho, why have you limited the guide just to i9100 :confused: im reading it now, wouldnt it be useful to all samsung devices
[Galaxy S II General] Tired Storeman:
Might try remaking my background 480pixels wide but only color 120pixels wide black and leave the rest transparent
[Galaxy S II General] encik_racun:
Any mod to swap storage on i9100G stock 4.1.2?
[Galaxy S II General] Goldie:
Purely because stuff gets lost in general android within minutes. :)
[Galaxy S II General] sherif-bakhoum:
Hi goldieking I would like to ask you about improve ripple mod I flashed it on neat rom lsw but when I flashed ink effects i lost the mod of improve ripple do you have any solution? Thanks in advance
[Galaxy S II General] bombaybadboy:
Sorry for jumping in but do you mean you flashed one android policy mod over another android policy mod? If so and you want both then you will have to edit the android.policy.jar in your ink effect mod to change ripple. Or just wait till sale releases new neatrom today :)
[Galaxy S II General] Tired Storeman:
Figured out my Notification header background.
[Galaxy S II General] encik_racun:
Hoping someone will make lidroid toggle for i9100G...and a storage swap mod :(
[Galaxy S II General] bombaybadboy:
Try the guide for 23 toggles on first page
[Galaxy S II General] cbucz24:
very cool, looks nice. mind sharing what you did to achieve the desired look?
[Galaxy S II General] Tired Storeman:
Modified Notification Header Background

Yeah, no probs.

I use Paintshop Pro

1. Made a transparent png 480x51pixels, saved as background.png

2. Made my desired background to go behind the word "Notifications" (mine is 180x51 pixels), saved as notification.png

3. Copied notification.png and pasted as a new layer on top of background.png,

4. Moved the notification png to the right so its right hand edge lined up with the right hand edge of the background png.

5. Saved the combined images as notification1.png (see screenshot)

6. Copied notification1.png to decompiled SystemUI/res/drawable-hdpi.

7. Edited SystemUI/res//layout/tw_status_bar_expanded.xml changing

background to

ending up with

8. Centered the Word "Notifications" on the new background by editing SystemUI/res/layout/tw_status_bar_expanded.xml, changing the

to "10dip" ending up with

9. Changed the width of the Clear Button, by editing SystemUI/res/values/dimens.xml to

10. Moved the Clear Button all the way to the right by editing SystemUI/res/layout/tw_status_bar_expanded.xml

Changing android:padding= to "0.0dip"

ending up with

11. Compiled SystemUI, moving relevent files from Original SystemUI, to avoid SystemUI F/C

Please forgive my tutorial making , it is fairly basic.
[Galaxy S II General] gaosphappy:
Hi guys i'm looking for a how to... to make an MTP mode zip i have searched but nothing really seems to fit what it want and its one of those things i use but am always waiting for the dev (sale) to make. seems so much easier on his time that if i can make one for myself i do.

thanks in advance :good:
[Galaxy S II General] engloa:
For you or for others?

I ask because you can easily do it by using the setprop command in terminal emulator or adb
[Galaxy S II General] gaosphappy:
Me really but if a can make a zip for others would be happy to.. guess i depends on level of knowledge required.

Mine is very basic as in i can follow a guide and adapt within reason.

lets start with the setprop in adb/terminal emulator :D
[Galaxy S II General] MyLifeRocks10:
In terminal type this:

su(hit enter)
setprop persist.sys.usb.config mtp( hit enter)

Similarly for Mass Storage

setprop persist.sys.usb.config mass_storage( hit enter)
[Galaxy S II General] engloa:
To follow up MLR10's post, you also need to reboot for changes to take effect. Type reboot, press enter,done:)
[Galaxy S II General] encik_racun:
Any ready-made for DXLS8? :D
[Galaxy S II General] Tired Storeman:
Help Changing Text Color

Would anybody be able to tell me which xml file i need to edit to change the color of

"Package Installer" Text in (screenshot 1), and the .9.png name of the blue line

and the "Mute" "Vibrate" and "Sound" Text in (Screenshot 2)

I would like to change them from blue to white.

Any help would be appreciated.
[Galaxy S II General] cbucz24:
Using a color picker, check the framework.res./colors

There are 3 or 4 folders. You may need to change the values in a few places.

I check

tw_primary_text_holo_dark.xml and light. Then check the secondary. These should be the xml files you need.

The line is probably in the fw too. Its gonna be a 1x1 px png. Turn your file manager to a dark bg an zoom in to larger thumbnails. This is how I find a lot of stuff.

Good luck
[Galaxy S II General] Tired Storeman:
Thanks mate, i will have a squiz at them:good:
[Galaxy S II General] Tired Storeman:
Hey cbucz24, thank-you so much for pointing me in the right direction.:highfive:

I did a search also in framework-res/values/colors for 33b5e5 and came up with

i changed it to

Not only did that change the text color to white, it also changed the color of the line under the text to white, go figure.

It may well change other things on the phone to white, but as i am making a black and white theme, all the better:)

One down 1 to go.
[Galaxy S II General] Tired Storeman:
Hi all,

I would like to ask for some help again, if i may.

I am trying to center a background png behind centered "No Notification" text on the Notification screen.

Can anybody tell me what i need to add to

and where i need to add it to get my png centered.

I tried

But this had no effect.

The below screenshot is basically what i am trying to achieve.
[Galaxy S II General] SkyaTura:
Nothing changed or changed wrong?
[Galaxy S II General] Tired Storeman:
Hey mate, that's for replying, nothing changed at all.
[Galaxy S II General] Goldie:
Im not great with xml but tried layout_gravity? Or cheat and type it in your background image :p
[Galaxy S II General] Goldie:
And change the string to ""