[Q] ICSROM & Full Transperency Mod - Request for XML edit help! - Atrix 4G Q&A, Help & Troubleshooting

I have been able to successfully port a transparency mod for all the screen elements, including the statusbar. However, there is one element that is preventing me from releasing a full transparency theme for ICSROM. My trouble is with something called “Large_Icon” where I want to move it to a file (instead of a hard color code) so I can theme it. I have been able to successfully change 6 other elements like this in ICSROM, but this one element has stumped me. I found the source of the issue in: SystemUI.apk (res/layout/staus_bar_notification_row.xml).
As you can see in the screen shot I was able to mod the (@drawable/status_bar_notification_row_background_color) and put that to a file. But the @id/large_icon is not as simple. I tried the obvious of making the android:background to a drawable file, but it seems to ignore the change.
Here is the code I am referencing (in res/layout/staus_bar_notification_row.xml):
Code:
<ImageView android:id="@id/large_icon" android:background="@*android:drawable/numberpicker_down_disabled_focused_holo_dark" android:clickable="true" android:layout_width="@*android:dimen/notification_large_icon_width" android:layout_height="@*android:dimen/notification_large_icon_height" android:scaleType="center" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
Is there anyone out there that would be willing to spend some time to help me on this?

Related

Center Clock mod - Guide up / Flashable .Zip

Has anyone tried/managed to get the clock on the CM7.1 rom to display in centre
Iv followed instuction from here:
http://forum.xda-developers.com/showthread.php?t=1174202 By Taine0
And also from here
http://forum.xda-developers.com/showthread.php?t=1202866 By ZduneX25
But run into Error whilst decompiling the SystemUI.apk
Anyone had any luck with this, or advice/help
Iv added a Flash-able .zip which is at the bottom of this post,
This works on my CM7.1.0 - FXP041 so should work with yours.
Please do a back-up in case it messes things up.
If is does mess things up and you didnt back up, just reflash the CM7.1.0 - FXP041.Zip over the top you retain all data.
EDIT:
Ok im getting better at learning XML editing, its been a long night.
but iv been using this guide here with some good effects.
Still a few problems that i need to work out.
Big thanks to member: K Dotty for helping me out.
&
TheGrammarFreak - for guide below.
TheGrammarFreak said:
Hokay, I'll explain the way I make the edits.
I use APKTool to manage decompiling and rebuilding the apk, simply because I like it. I'm also on Linux and apkmanager doesn't work too well.
So I have apktool in my path, so I can be anywhere on my system and use it.
Code:
cd Android
mkdir StatusBarMOD
cd StatusBarMOD
Copy the SystemUI.apk there, then
Code:
apktool d SystemUI.apk
APK Tool does its thing, then I go to the status_bar.xml and open it up in gedit.
Editing status_bar.xml
Centre the clock
For the clock you need to find this line:
So CTRL+F, search for "clock" then select the whole line. Your text editor might break it into 2 lines, make sure you get the whole XML tag (between ").
Delete that, then copy this line to your clipboard:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="bold" android:textColor="#ff000000" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
If you're using an HDPI phone change this bit
Code:
android:paddingTop="2.0px"
to
Code:
android:paddingTop="3.0px"
and if you're using an LDPI phone change it to
Code:
android:paddingTop="1.0px"
If you're as cool as me, you'll have an MDPI phone, so you can leave it as it is.
So, line copied to clipboard you need to past it to just BELOW this line:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
Clock = centred.
Centre the date
Find this line (it's right at the bottom):
Now, for this MOD I won't give you a premade version, but I'll tell you what to change (that way we learn ).
To centre the clock you need to change the android:gravity property. At the moment it's set to "left|center". All you need to do is change it to "center". If you have a semi transparent status bar and you want to avoid it looking ugly you may also want to extend the date's background across the whole status bar. To do that you need to change the "android:layout_width" property. Instead of "wrap_content" it should say "fill_parent"
Date = centred
Flip the status bar icons around
Ok, so this one is a little weird. You need to change the alignment, the gravity and the order of 2 elements. Each XML tag has an ID, which we'll use to identify the bits we need to move. The ID can be found next to the property "android:id". The battery, signal and 3G icons are part of
Code:
android:id="@id/statusIcons"
So find the tag with that in it (CTRL+F is your friend) then select the whole tag. It's between the bit that says "" The whole thing will look something like this:
You need to cut it out (CTRL+X), and move it to just BELOW the LinearLayout with the ID
Code:
android:id="@id/icons"
So once moved, we need to change the alignment and the gravity. Near the end of the line you just moved it has this property:
Code:
android:layout_alignParentRight="true"
You need to change it to
Code:
android:layout_alignParentLeft="true"
You also need to change the android:gravity to
Code:
android:gravity="left"
Part one sorted.
To move the notifications over to the right you need to do this:
In the tag ID'd
Code:
android:id="@id/icons"
you need to change the alignment to right (alignParentLeft to alignParentRight) and change the gravity to "right"
Rebuilding the apk
Go back to your command line and issue this:
Code:
apktool b SystemUI
In the folder you decompiled in you will see a folder named SystemUI. Once you rebuild your apk using apktool you'll notice that 2 new folders are in that folder (the SystemUI one): build and dist. Go into the build folder, then apk --> res --> layout. Also, make a backup of your original SystemUI.apk, then open the original using 7zip, winrar or the archive manager on linux. DO NOT EXTRACT THE ARCHIVE, JUST OPEN IT! Now, within the archive, navigate to res --> layout. Go back to the folder you just opened, and drag the status_bar.xml found there into the archive window, overwriting the status_bar.xml already there. Close everything, then push the now modified SystemUI.apk to your phone using ADB and reboot. Job done!
I may edit this post after I publish it, to fix typos and the like.
Hope this helps y'all!
I might also add that, as an Englishman, spelling "centre" as "center" is a nightmare. Oh so often my compile fails because I spelt centre correctly.
Click to expand...
Click to collapse
Added a zip for people on CM7.1.0 - FXP041 to try out !!
It worked! Thanks for this!
Hi mate
Worked for me
Thanx
Sent from my LT15i using xda premium
but the font should be bold hours!
can u make the same for .283 also?
muzontnt said:
but the font should be bold hours!
Click to expand...
Click to collapse
Iv changed all system fonts on my phone, might be why it's not bold., can't remember.
Sent from my Arc to your eyes.
punkmonkey1984 said:
Added a zip for people on CM7.1.0 - FXP041 to try out !!
Click to expand...
Click to collapse
It's only a few days ago since you were asking how to change images, and now you've posted this.
Life's about learning, so i ask people for advice and work things out.
I really want to try getting in to coding then hopefully making roms like miui.
Sent from my Arc to your eyes.
punkmonkey1984 said:
changed all system fonts on my phone
Click to expand...
Click to collapse
: D but the date is displayed in bold
muzontnt said:
: D but the date is displayed in bold
Click to expand...
Click to collapse
Very true.
try this
Decompile your systemUI.apk
go to
SystemUI.apk\res\layout
Open status_bar.xml
Find
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="normal" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
change to
Code:
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textSize="15.0sp" android:typeface="bold" android:textStyle="bold" android:textColor="#ffffffff" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
Re-compile
over write original systemUI.apk in /system/app
reboot.
should working, not tested.
Can I flash the zip file if I'm using CM7.1.0-Ba2tF-Olympus? If so, how do I do that? Can I just use ROM Manager?
Sorry. I just unlocked bootloader and installed CM7 a few days ago so I'm still getting used to all of this. Thanks for your patience!
Will this working on stock ROM?? 42 fw
Sent from my Anzu using xda premium
punkmonkey1984 said:
Has anyone tried/managed to get the clock on the CM7.1 rom to display in centre
Iv followed instuction from here:
http://forum.xda-developers.com/showthread.php?t=1174202 By Taine0
And also from here
http://forum.xda-developers.com/showthread.php?t=1202866 By ZduneX25
But run into Error whilst decompiling the SystemUI.apk
Anyone had any luck with this, or advice/help
Iv added a Flash-able .zip which is at the bottom of this post,
This works on my CM7.1.0 - FXP041 so should work with yours.
Please do a back-up in case it messes things up.
If is does mess things up and you didnt back up, just reflash the CM7.1.0 - FXP041.Zip over the top you retain all data.
EDIT:
Ok im getting better at learning XML editing, its been a long night.
but iv been using this guide here with some good effects.
Still a few problems that i need to work out.
Big thanks to member: K Dotty for helping me out.
&
TheGrammarFreak - for guide below.
Click to expand...
Click to collapse
how to center clock in lockscreen?

What am I doing wrong? (modding)

Someone gave me a mod that adds 15 toggle to my ROM, the only problem is it takes away the brightness slider which I really liked, and it uses different battery icons then I'd like.
So, I took the file he gave me and first set to work changing the brightness slider and getting it back.
Vertumus, who made the theme I'm using, JB Domination, said you edit the file tw_status_bar_expanded.xml and take out this code:
PHP:
<LinearLayout android:orientation="horizontal" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="56.0dip">
<ImageView android:id="@id/brightness_icon" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/tw_quickpanel_icon_brightness" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</LinearLayout>
So, I opened up the mod I was given decompiled SystemUI.apk and found that file. Changed that so that the information was added back in. Saved, recompiled (without errors) and threw the SystemUI.apk back into the zip and reflashed.
This broke my statusbar and wallpaper. Why?
I then tried signing it using signapk, which didn't work
I think you may find your answer in this thread I spotted
http://forum.xda-developers.com/showthread.php?t=1790782
[Q] Help re decompiling/recompiling
Sent from my GT-I9300 using xda premium
I sorted it.
I wasn't signing properly.
To fix it I took the META-INF and AndroidManifest.xml from the original .apk, kept them save. Built the APK once, then stuck those two files in the build/apk folder and rebuilt/compiled. Worked fine after that.

[Q] Editing an .apk file.

I am new to the android development. But i want to learn and i am trying.....I have Samsung galaxy tab 2 P3100 currently running CM10.....I rooted that myself and i can install different roms i.e. I can understand the instructions.... I want to edit an app called 7notes with mazec....the app looks like this when installed.....
1) The blue rectangle shows an app called Notebooks which is a note taking app...
2) The red rectangle shows the app i want to edit i.e. 7notes with mazec which is an input method....
I am a right handed guy....i want to edit the app so that it will be convenient for me to use....I want the app to look like this.....
Is there any way i can edit the app like that....i can provide the .apk file....
AkshayGTP3100 said:
I am new to the android development. But i want to learn and i am trying.....I have Samsung galaxy tab 2 P3100 currently running CM10.....I rooted that myself and i can install different roms i.e. I can understand the instructions.... I want to edit an app called 7notes with mazec....the app looks like this when installed.....
1) The blue rectangle shows an app called Notebooks which is a note taking app...
2) The red rectangle shows the app i want to edit i.e. 7notes with mazec which is an input method....
I am a right handed guy....i want to edit the app so that it will be convenient for me to use....I want the app to look like this.....
Is there any way i can edit the app like that....i can provide the .apk file....
Click to expand...
Click to collapse
It "should" be as simple as editing the res/layout to the values you want. I say "should" because I've never done more than a center clock mod in respect to moving placement of items. Hopefully someone can either verify this, or send you on the right path :thumbup:
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
It "should" be as simple as editing the res/layout to the values you want. I say "should" because I've never done more than a center clock mod in respect to moving placement of items. Hopefully someone can either verify this, or send you on the right path :thumbup:
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....
Can you send me the original and the edited xml file of the mod you did abt the center clock? maybe this mod is on the similar lines.....That will help me understand the modifications in this app.....
AkshayGTP3100 said:
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....
Can you send me the original and the edited xml file of the mod you did abt the center clock? maybe this mod is on the similar lines.....That will help me understand the modifications in this app.....
Click to expand...
Click to collapse
Yes, it appears to be that file. The xml's arent difficult to edit as long as you know what you're looking for, and know what terminology to use.
Code:
[SIZE="1"] <ImageView android:id="@id/delete_backward" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button" [COLOR="Red"]android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/backspace" android:layout_toLeftOf="@id/new_line" [COLOR="Red"]android:layout_alignBottom[/COLOR]="@id/menu" />
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button"[COLOR="Red"] android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Red"]android:layout_toLeftOf[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
[/SIZE]
The code selected in red, is what you would to change, however, I'm not entirely sure what to change them to. I would try to find an app that already has something setup like you want this to be and look at the layout of those buttons.
The center clock mod I found using this guide only edited one line, like this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="red"]android:gravity="left|center"[/COLOR] android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and changed it to this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="Blue"]android:gravity="center"[/COLOR] android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
again, the code in red is the original, and code in blue is edited.
You could try something to the effect of
Code:
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button[COLOR="Blue"]android:layout_marginLeft[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Blue"]android:layout_alignBottom[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
Obviously, I dont know if this will work or not, but you can try it. Just make sure you keep your original apk so you can replace it if you need to:good:
Stryke_the_Orc said:
Yes, it appears to be that file. The xml's arent difficult to edit as long as you know what you're looking for, and know what terminology to use.
Code:
[SIZE="1"] <ImageView android:id="@id/delete_backward" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button" [COLOR="Red"]android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/backspace" android:layout_toLeftOf="@id/new_line" [COLOR="Red"]android:layout_alignBottom[/COLOR]="@id/menu" />
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button"[COLOR="Red"] android:layout_marginRight[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Red"]android:layout_toLeftOf[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
[/SIZE]
The code selected in red, is what you would to change, however, I'm not entirely sure what to change them to. I would try to find an app that already has something setup like you want this to be and look at the layout of those buttons.
The center clock mod I found using this guide only edited one line, like this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="red"]android:gravity="left|center"[/COLOR] android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
and changed it to this
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" [COLOR="Blue"]android:gravity="center"[/COLOR] android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
again, the code in red is the original, and code in blue is edited.
You could try something to the effect of
Code:
<ImageView android:id="@id/delete_stroke" android:paddingTop="@dimen/bottom_bar_padding_top" android:paddingBottom="@dimen/bottom_bar_padding_bottom" android:layout_width="@dimen/img_w_menubar_button" android:layout_height="@dimen/img_h_menubar_button[COLOR="Blue"]android:layout_marginLeft[/COLOR]="@dimen/bottom_bar_btn_margin" android:src="@drawable/delete_stroke_n" [COLOR="Blue"]android:layout_alignBottom[/COLOR]="@id/new_line" [COLOR="red"]android:layout_alignBottom[/COLOR]="@id/menu" />
Obviously, I dont know if this will work or not, but you can try it. Just make sure you keep your original apk so you can replace it if you need to:good:
Click to expand...
Click to collapse
Thank you very much Stryke_the_Orc.....i tried what you suggested but i am getting some compilation error.....i not only want to move the buttons horizontally but i want them staked also.... i will keep looking for solution....
AkshayGTP3100 said:
Thank you very much Stryke_the_Orc.....i tried what you suggested but i am getting some compilation error.....i not only want to move the buttons horizontally but i want them staked also.... i will keep looking for solution....
Click to expand...
Click to collapse
Good luck to you, like I said, I wasn't sure that would work, but it should give you some idea of what you're looking for:beer:
Sent from my SPH-D710 using xda premium

[Modding Guide - 11/9/2013] Prism / SystemUI / Framwework (4.2.2)

Hello all,
Just thought i would drop you all a quick guide i will add to this as much as i can.. Drop me a message if you need anything else.
For Transparent NavBar - Decompile Prism.apk
Once decompiled navigate to \Prism\res\drawable-xxhdpi look for home_nav_bg
Just modify the above image to your liking color, transparency etc
For modified app drawer - 4 x 5 etc - Decompile Prism.apk
Once decompiled navigate to \Prism\res\integers - the below are the modifications you need to make
<integer name="config_allAppsTabbedCellCountX">4</integer>
<integer name="config_allAppsTabbedCellCountY">5</integer>
<integer name="config_allAppsTabbedCellCountXAlt">5</integer>
<integer name="config_allAppsTabbedCellCountYAlt">6</integer>
Once made you need to head over to the arrays XML and change - The below to match the above
<string-array name="apps_grid_option">
<item>4 × 5</item>
<item>5 × 6</item>
</string-array>
Please note modding the app drawer may require you to mod the dimensions in values to have it all fit nicely.
Ill check shortly but i am pretty sure its the below you need to modify for a better fit.
<dimen name="page_view_icon_cell_width">90.0dip</dimen>
<dimen name="page_view_icon_cell_height">97.0dip</dimen>
<dimen name="page_view_icon_cell_width_alt">75.0dip</dimen>
<dimen name="page_view_icon_cell_height_alt">90.0dip</dimen>
Statusbar Mods [Colors/Transparency etc] - Decompile SystemUI.apk
Navigate to \SystemUI\res\layout - Open Status_Bar.xml
Look at Line 2 where it says - android:background="@drawable/status_bar_background"
The Red is what we are going to modify
1. You will find in the drawables folder and image labeled status_bar_background open this and mod this to whatever you wish
2. Alternatively you can also mod this by changing the green text to "#FF000000" This is a Hex color - FF is level of Transparency and 000000 is the Color White
App Drawer / Blink Feed Clock Backgrond - Decompile Prism.apk
Navigate to \Prism\res\drawable-xxhdpi
Change automotive_common_app_bkg_top.png to whatever you wish
Recent Apps Pull Down Background - Decompile SystemUI.apk
To Change the Statusbar Pull-down Shade Background Color/Transparency
• First Decompile SystemUI.apk and navigate to the "res/layouts" and find "status_bar_expanded.xml"
• Next, find where it says android:background="@*android:color/black" and change it to android:background="@color/transparent_black" and save it.
• Now go to "res/values" and open "colors.xml"
• We are going to add a new color to this by adding this <color name="@color/transparent_black">#A5000000</color>
• Save that and recompile and now your pull-down shade is semi-transparent​
#00000000 is 100% Transparent.
#40000000 is 75% Transparent.
#80000000 is 50% Transparent.
#B0000000 is 25% Transparent.
#FF000000 is 0% Transparent.
XML QUICK COLOR GUIDE
• When you see a Hex color in xml it will probably look like #FF1A2B3C (I will be explaining this from LEFT to RIGHT following the # sign)
• The First two digits represents the level of Transparency 00 is Transparent and FF is Opaque
• The Second two digits represents the level of RED where 00 is No Red (0) and FF is Full Red (255)
• The Third two digits represents the level of GREEN where 00 is No Green (0) and FF is Full Green (255)
• The Fourth two digits represents the level of BLUE where 00 is No Blue (0) and FF is Full Blue (255)​
App Drawer Transparency - Decompile Prism.apk
Next navigate to \Prism\smali\com\htc\launcher
Go to Launcher . Smali and CTRL + F and search for .method public updateWallpaperVisibility(Z)V
Highlight this line and highlight everything below until you see end method. just to clarify we are deleting From .method to .end method
.method public updateWallpaperVisibility(Z)V
.end method
after this CTRL + F and search for updateWallpaperVisibility - remove any line that has this
[We now have to clean the code navigate to the 3 files below - for each CTRL + F and search for updateWallpaperVisibility and remove all lines which include this
Launcher$21.Smali
Launcher$22.Smali
Launcher$25.Smali
Workspace.smali
Now navigate to DragLayer.Smali
CTRL + F and search for const/high16 v2, -0x100, change this line to const/high16 v2, 0x0
Navigate to Prism/smali/com/htc/launcher/pageview
Open AllAppsPagedViewHost.smali - CTRL + F and search for const/high16 v2, -0x100, change this line to const/high16 v2, 0x0
When complete it looks like a small glitch but its a duplication transition animation to make this less glitchy navigate to Values/ Dimens and Modify the below till you achieve your desired results
<integer name="config_appsCustomizeZoomInTime">150</integer>
<integer name="config_appsCustomizeZoomOutTime">100</integer>
<integer name="config_appsCustomizeZoomInScaleFactor">200</integer>
<integer name="config_appsCustomizeZoomOutScaleFactor">133</integer>
<integer name="config_appsCustomizeFadeInTime">100</integer>
<integer name="config_appsCustomizeFadeOutTime">150</integer>
App Drawer / Blink Feed Background - Decompile Prism.apk
First of all to add backgrounds to either of these we need to achieve transparency (see guide below) App Drawer Transparency
Add the below to achieve a background for whatever you wish
res/layouts/feed_view.xml - Blinkfeed
<com.htc.launcher.feeds.view.FeedScrollView - At this line add android:background="@drawable/12345"
res/layout/all_apps_pagedview.xml - App Drawer
<com.htc.launcher.pageview.AllAppsPagedView - At this line add android:background="@drawable/12345"
\Prism\res\values\colors.xml - BlinkFeed Tiles - Change the red color below to your desired Color / Transparency
<color name="feedview_background">#ff33b5e5</color>
12345 - This refers to the name of your Background image - Once the tags have been added add the images to drawable-xxhdpi
#ff33b5e5 - 33b5e refers to the color and the FF refers to transparency, FF = non transparent / 00 = Fully Transparent / 68 = 50% i believe)
Remove App Drawer / Blinkfeed Clock - Decompile Prism.apk
!!!Please note this is a work in Progress!!!
SO FAR:
Navigate to Prism\smali\com\htc\launcher\masthead
Open Masthead.Smali
Remove this whole method - .method private attachToContainer(Landroid/view/ViewGroupV
We need to then navigate to Values Dimens and modify the following for the correct fitting
Remove Carrier Label - Decompile SystemUI.apk
Navigate to \SystemUI\res\layout - Open Status_Bar_Expanded.xml
At line <com.android.systemui.statusbar.phone.CarrierLabel where is says android:visibility="invisible change to "android:visibility="gone"
Center Clock - Decompile SystemUI.apk
Navigate to SystemUI\res\layout - Status_Bar.xml
Step 1. First of all locate and delete this line
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
Step 2. Next locate the following line - Change this to replicate the line below
Code:
Original - <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
New - <LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" >
Step 3. Copy the following above your modified line in Step 2
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
Step 4. Check it resembles the below
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" >
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ViewStub android:id="@id/signal_cluster" android:inflatedId="@id/signal_cluster_tree" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center_vertical" android:id="@id/battery_text" android:paddingLeft="1.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
Remove Status Bar Icons - Thanks to .torrented
To make statusbar icons disappear you must decompile SystemUI.apk navigate to the "res" folder and then into the "drawable - xxhdpi" folder and there you will see a bunch of png's.
From there locate which statusbar image you wish to make disappear and copy its exact name, change the tranparant png's name to whatever the original name was and replace it with the newly transparent version.
Just replicate this for any statusbar image you wish (delete the old ones are you are done with them)
Recompile SystemUI.apk and replace the one on the device, your statusbar images will now be GONE!
Settings Background - Decompile framework-res.apk
Coming Soon
Hello,
Thank you for this... Could you also add how to achieve a transparent app drawer? I am still using Nos2.03 and not interested in moving to the 4.2.2 version just yet. I see you have a zip already for this.
Cheers
Will post shortly
Sent from my HTC6435LVW using XDA Premium 4 mobile app
xvicedice said:
Will post shortly
Sent from my HTC6435LVW using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Rock on, editing smali leaves no room for error :good:
Updated
Sent from my HTC6435LVW using XDA Premium 4 mobile app
Hi,
Thanks for your guide, could you please try to port the following
http://forum.xda-developers.com/showthread.php?t=2138654
or guide which files to be modded to get the big photo on calling screen.
thanks
:thumbup:
Remove/Edit Some Statusbar Images
this is an xxhdpi resource
To make statusbar icons disappear you must decompile SystemUI.apk navigate to the "res" folder and then into the "drawable - xxhdpi" folder and there you will see a bunch of png's.
From there locate which statusbar image you wish to make disappear and copy its exact name, change the tranparant png's name to whatever the original name was and replace it with the newly transparent version.
Just replicate this for any statusbar image you wish (delete the old ones are you are done with them)
Recompile SystemUI.apk and replace the one on the device, your statusbar images will now be GONE!
Hope this helps anyone!
*** There probably are other ways of doing this but I find this the easiest (aka Quick'n'Dirty), OP is allowed to post this in the OP if he desires
Thank you for the help .torrented (OP updated)
I will update this shortly to show modifications for 4.3 and 4.4
Ashle said:
Please edit me ..... :crying:
Click to expand...
Click to collapse
Please backup first and then push this to the phone, let me know what happens.
https://dl.dropboxusercontent.com/u/67055555/SystemUI.apk
[QUOTxvicedice;49055500]Please backup first and then push this to the phone, let me know what happens.
https://dl.dropboxusercontent.com/u/67055555/SystemUI.apk[/QUOTE]
No ....systemui has stopped
To Change the Statusbar Pull-down Shade Background Color/Transparency
First Decompile SystemUI.apk and navigate to the "res/layouts" and find "status_bar_expanded.xml"
Next, find where it says android:background="@*android:color/black" and change it to android:background="@color/transparent_black" and save it.
Now go to "res/values" and open "colors.xml"
We are going to add a new color to this by adding this <color name="@color/transparent_black">#A5000000</color>
Save that and recompile and now your pull-down shade is semi-transparent
#00000000 is 100% Transparent.
#40000000 is 75% Transparent.
#80000000 is 50% Transparent.
#B0000000 is 25% Transparent.
#FF000000 is 0% Transparent.
XML QUICK COLOR GUIDE
When you see a Hex color in xml it will probably look like #FF1A2B3C (I will be explaining this from LEFT to RIGHT following the # sign)
The First two digits represents the level of Transparency 00 is Transparent and FF is Opaque
The Second two digits represents the level of RED where 00 is No Red (0) and FF is Full Red (255)
The Third two digits represents the level of GREEN where 00 is No Green (0) and FF is Full Green (255)
The Fourth two digits represents the level of BLUE where 00 is No Blue (0) and FF is Full Blue (255)
xvicedice said:
Drop me a message if you need anything else.
Click to expand...
Click to collapse
Thanks, this is all very useful information. Can you by any chance put a guide to which files need altering to change the home screen grid size and spacing in prism.apk?
Many Thanks
Of course I'm away from my pc today but I'll get that up for you tomorrow
Sent from my HTC Droid DNA using XDA Premium 4 mobile app
Hello I'm looking to decompile prism.apk to try and change values to enable me to have more then 4 app in my locksceeen dock and home screen dock. I have a HTC one max so it won't look out of place just hoping someone can help thanks.
Hi if you wish to do this you have to navigate to the values folder and find the integers.xml.
Once you are there look for hotseat_cell_count (think that’s the one) increase the value to what you like should be 5 as standard I think.
Once you increase it though bear in mind things will look squashed so you will need to modify the padding either side, so in the Values folder look for a file called dimens.xml look for 2 lines button_bar_width_left_padding & button_bar_width_right_padding decrease both values on these to suit.
Hope that helps
Jamie

[Q] Theming .xml (<TextView/>)

Hello, I'm trying to mod this line, in order to change the text colour.
Code:
<TextView android:layout_gravity="center_horizontal" android:id="@id/due_date" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/TextAppearance.Material.Caption" />
Is it possible to override the text color of style="@android:style/TextAppearance.Material.Caption" to a custom one, without editing neither the framework-res.apk, nor styles.xml of the app itself? I have tried to add the needed line (android:textColor="#ffffffff") in a variety of positions, but I'm not sure if this is the problem. Can you help me?
NFS_FM said:
Hello, I'm trying to mod this line, in order to change the text colour.
Code:
<TextView android:layout_gravity="center_horizontal" android:id="@id/due_date" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/TextAppearance.Material.Caption" />
Is it possible to override the text color of style="@android:style/TextAppearance.Material.Caption" to a custom one, without editing neither the framework-res.apk, nor styles.xml of the app itself? I have tried to add the needed line (android:textColor="#ffffffff") in a variety of positions, but I'm not sure if this is the problem. Can you help me?
Click to expand...
Click to collapse
Is that a xml from layout folder or? if so post the full xml so I can see or just pm me I will help you
SICKMADE said:
Is that a xml from layout folder or? if so post the full xml so I can see or just pm me I will help you
Click to expand...
Click to collapse
The line is from an .xml from the layout folder. You may download the full .xml from here, and the lines I am interested in are 8, 12 and 13. Thank you.

Categories

Resources