[guide][mod]Transparency for froyo, gingerbread, For all.....

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
I have searched for transparency mod all over.... but couldn't find it.... decided to make it my self..... tried hard and come up with this when i was trying:eek::eek::eek:.......
Its simple work in almost all android versions..... this make almost all apps like root explorer, settings, music etc apps transparent

make backup before try this....!!!!

U need::::
* stock framework-res.apk
* apk manager or any other
* text editer like notepad++
* 7zip
* patience and GK


steps:::

decompile framework, in decompiled framework folder> res folder> values > styles.xml open it via notepad++ styles.xml is the key file, it control all apps layout and look.....

* in styles search for <style name="Theme"> this is the main theme layout... all app uses this.....

* under <style name="Theme"> search for <item name="colorBackground">@color/background_dark</item> now change this to <item name="colorBackground">@color/transparent</item> we are calling transparent color instead of dark which is inbuilt defined in color.xml in values folder.....

* now main part add <item name="windowIsTranslucent">true</item> in theme... means after <item name="colorBackground">@color/transparent</item>......... this line makes all app apps to be transparent....


Next there are two methods..........

first method :::
now make a transparent image save it as png file....... make sure it has correct resolution..... dont make full transparent it looks odd.....
save it and past in draweble mdpi or hdpi which ur device support..
now in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">@drawable/"your image name"</item> add ur image name without ".....
save and close....

------OR-------

second method ::::
in styles.xml look for <item name="windowBackground">@drawable/screen_background_dark</item> below main theme....
change this to <item name="windowBackground">#80ffffff</item> or any other color hex code first two digits control transparency.....
save and close....

compile framework delete resources file in keep folder.... open stock framework (unedited) with 7zip,, amd open edited framework with 7zip...
drag and drop resources file and res folder from edited to unedited framework......
thets it... make flashable zip or adb push.........

ask me if u hav :eek::eek::eek:.......


Hit thanks if i helped U....... its free of cost...... :eek::eek:
 

Attachments

Last edited:

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
Open a new file in adobe a dialog box will appear mak sure window background transparent selected add any image u want in this (copy past ;) ) at da right side of da adobe window ther iz list of layers double click on image u pasted.... adjest opacity as u wish.... and save it as .png file.. ;) ;)

don't forgot hit thanx.... ;)
 

Avilove.Cullen

Senior Member
Mar 20, 2012
2,900
713
0
27
♥♥Bradford♥♥
Open a new file in adobe a dialog box will appear mak sure window background transparent selected add any image u want in this (copy past ;) ) at da right side of da adobe window ther iz list of layers double click on image u pasted.... adjest opacity as u wish.... and save it as .png file.. ;) ;)

don't forgot hit thanx.... ;)
I will try and then tell you. But i have seen that most people make setting transparent and from there wallpaper is seen.

Edward Cullen
 

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
Hello you !

I want to do it for my MIUI I select any file to be able to do as you guide:fingers-crossed:
two option??

1 framwork fres.apk (of stock miui)

2 theme for Miui

pls help me :cowboy:
U must use stock framework.apk ................. u can also do with theme but some time apktool gives plenty of error with thems.......... use stock framework for error free result........... :) report me after it works... :) :)
 
  • Like
Reactions: le_manhpro

le_manhpro

Senior Member
Aug 25, 2011
298
93
0
Buôn Mê Thuột
I can't find this line in styles:(

look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk

http://www.mediafire.com/?jp4h3jl1n01nehs

you can help me:(, thanks a lot:cowboy:
 

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
I can't find this line in styles:(

look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk

http://www.mediafire.com/?jp4h3jl1n01nehs

you can help me:(, thanks a lot:cowboy:
Hey search for window background only below theme.... ignore what evr may @draweble/blabla...... try if not works... then i ll c in framework afterwords...

Sent from my Micromax A60 using xda premium
 

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
Solved

I can't find this line in styles:(

look for now in styles.xml <item name="windowBackground"> ​​@ drawable / screen_background_dark </ item> below the main theme ....
change this to <item name="windowBackground"> ​​@ drawable / "your image name" </ item> add ur image name without ".....
Save and close ....
i have add file framework-res.apk

http://www.mediafire.com/?jp4h3jl1n01nehs

you can help me:(, thanks a lot:cowboy:
Hey just decompiled ur framework......... in ur styles u have <item name="windowBackground">@color/mi_screen_background_dark</item>

No problem.......... change this to <item name="windowBackground">@drawable/"ur png image file name"</item> ...............
it must work........ try.... ask ur prblm if u hav.....
 
  • Like
Reactions: le_manhpro

m4570d0n

Senior Member
Nov 20, 2011
1,304
1,021
0
Houston
What is this Froyo you speak of? Is that what they use on the Motorola StarTac?:p

By the way, I'm not sure what it is you're trying to make transparent, but there's literally endless amounts of info, threads, apps, and themes out there for this for stock Gingerbread/ICS and any flavor of AOSP/CM9/AOKP/every other ROM out there.

All the info you need though is in styles.xml in framework-res.apk

A better method for transparent apps is to use a style with a parent style of Theme.Holo.Wallaper, and all of the derivatives of that style. It sets the background to your current wallpaper. You can also specify within the style the something like this:
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper">
        <item name="android:windowBackground">@drawable/semi_transparent_bg</item>
Then add a line in drawables.xml that says:
Code:
<item type="drawable" name="semi_transparent_bg">#60000000</item>
In this way, you have the transparent background but you can tint it so that it is a little darker, which makes it easier to theme for both light and dark wallapers/themes, adjusting the alpha value as you might need.

Also, there are many apps that use the image in framework-res at /res/drawable-nodpi/background_holo_dark.png as the background for the app. Changing that one image will change the background for apps like Titanium Backup, Root Explorer, Settings, etc.


.....But seriously, this information is literally everywhere already and it has been for quite some time.
 
Last edited:

akash akya

Senior Member
May 14, 2012
734
1,307
0
Bangalore
trickytipss.blogspot.in
What is this Froyo you speak of? Is that what they use on the Motorola StarTac?:p

By the way, I'm not sure what it is you're trying to make transparent, but there's literally endless amounts of info, threads, apps, and themes out there for this for stock Gingerbread/ICS and any flavor of AOSP/CM9/AOKP/every other ROM out there.

All the info you need though is in styles.xml in framework-res.apk

A better method for transparent apps is to use a style with a parent style of Theme.Holo.Wallaper, and all of the derivatives of that style. It sets the background to your current wallpaper. You can also specify within the style the something like this:
Code:
<style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper">
        <item name="android:windowBackground">@drawable/semi_transparent_bg</item>
Then add a line in drawables.xml that says:
Code:
<item type="drawable" name="semi_transparent_bg">#60000000</item>
In this way, you have the transparent background but you can tint it so that it is a little darker, which makes it easier to theme for both light and dark wallapers/themes, adjusting the alpha value as you might need.

Also, there are many apps that use the image in framework-res at /res/drawable-nodpi/background_holo_dark.png as the background for the app. Changing that one image will change the background for apps like Titanium Backup, Root Explorer, Settings, etc.


.....But seriously, this information is literally everywhere already and it has been for quite some time.
Hey i hav searching for long time.... but all of them requires systemui.apk.... wich is not in froyo roms.... and what u mentioned <style name="DialtactsTheme" parent="@android:style/Theme.Holo.Wallpaper"> this also not there in froyo rom...... while i am trying with styles i come up with this..... thought to share it........ i agree it will make many apks transparent...

Sent from my Micromax A60 using xda premium
 
Last edited: