[GUIDE] [MTK] Making Transparent Background - Android Q&A, Help & Troubleshooting

Guide Written By Boss Mahdi Hasan
.
1. Using Photoshop or similar create a trasparent
image and save it as .png. use your device
resolution for better results. and rename its as
"mairala.png"
.
2. Decompile framework-res.apk.
.
3. Browse to res/values and open styles.xml.
Search code for <style name="Theme">
On it, search this line <item name="colorBack
ground">@color/background_dark</item> (using
note pad++ is line 46 maybe) and replace with
<item name="colorBackground">@color/
transparent</item>
then search this line <item name="windowBac
kground">@drawable/screen_background_selector_
dark</item>
(using note pad++ is line 81 maybe) and replace
with <item name="windowBackground">@drawable/
mairala</item>
.
4. then Search code for <style name="Theme.Light"
parent="@style/Theme">
On it, search this line <item name="colorBack
ground">@color/background_light</item>
(using note pad++ is line 372 maybe) and replace
with <item name="colorBackground">@color/
transparent</item>
then search this line <item name="windowBac
kground">@color/white</item>
(using note pad++ is line 385 maybe) and replace
with <item name="windowBackground">@drawable/
mairala</item>
.
5. Search code for "<style name="Theme.Hol
o"parent="@style/Theme">"
On it, search this line "<item name="windowSho
wWallpaper">false</item>" (using note pad++ is line
1021 maybe) and replace
with "<item name="windowShowWallpaper">true</
item>"
.
6. Save and close.
.
7. Browse to res/drawable-hdpi , res/drawable-nodpi and paste your
image (mairala.png)
.
8. Recompile framework-res.
.
9. Using winrar or similar browse into
Contacs.apk to res/drawable-nodpi and replace
existing background_dial_holo_dark.png with
your image. simply drag&drop.
.
8. Replace framework-res and Contacts.apk on
your device..
.
Note: may you have to change some black text
color of framework-dependent apks.
You can do it from colors.xml

contact bg not change after replacing of img

Related

Transparent Contacts.apk Froyo 2.2.2

I wish to make transparent the contacts.apk on my streak , I have tried many guides but none of these worked for my froyo 2.2.2. Any of you tried by chance?
Have you looked here?
http://forum.xda-developers.com/showthread.php?t=990014
Seems to be a lot of transparent apps here and some instructions for editing your own.
thanks for the help (useful link), even if I meant something like
I'm sorry if you do not see too much but definitely makes the idea (sorry but taken from the web)
Now that is cool and I want it too....
I found this guide on the web,i tried many times it did not work :
What you have to do:
Extract the Contacts.apk from your phone/rom zip file
Decompile Contacts.apk
Open
call_background.xml
in res/drawable
Change
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:drawable/screen_background_dark" />
</selector>
--- End code ---
To:
--- Code: ---<?xml version="1.0" encoding="UTF-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="android:color/transparent" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="android:drawable/menuitem_checkbox_on" />
<item android:state_focused="false" android:state_pressed="false" android:drawable="android:color/transparent" />
</selector>
--- End code ---
Save and close.
Open
styles.xml
in res/values.
Change lines 3-6
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">null</item>
</style>
--- End code ---
To.
--- Code: ---<style name="DialtactsTheme" parent="android:style/Theme.Wallpaper">
<item name="android:windowBackground">drawable/custom_background_dialer</item>
<item name="android:windowNoTitle">null</item>
</style>
--- End code ---
Save and close.
Next add the transparent custom_background_dialer.png to the drawable-mdpi-finger folder.This can also be a custom image doesn't have to be a transparent one.
IN APKManager choose the option to compile your Contacts
Answer yes when you get asked if it is a system apk and if you want to copy files from the original framework. After the original framework has been extracted, change to your "keep"-Directory and delete the files resources.arsc and everything that you changed, (i.e. call_background.xml and the styles.xml is now hidden so you can't delete that so just delete the resources.arsc & call_background.xml)
Let apkmanager continue its work.
Now you have a new apk file in your place-here-for-modding directory, which you can push on your phone (DO IT IN RECOVERY): adb push unsignedContacts.apk /system/app/Contacts.apk or rename taking the unsigned out and put in your theme zip.
Now you must make the dialer buttons transparent.Change the following to be transparent,
Images are in the drawable-mdpi-finger folder:
btn_dial_action_left_disable.9
btn_dial_action_left_disable_focused.9
btn_dial_action_left_normal.9
btn_dial_action_left_pressed.9
btn_dial_action_left_selected.9
btn_dial_action_middle_disable.9
btn_dial_action_middle_disable_focused.9
btn_dial_action_middle_normal.9
btn_dial_action_middle_pressed.9
btn_dial_action_middle_selected.9
btn_dial_action_right_disable.9
btn_dial_action_right_disable_focused.9
btn_dial_action_right_normal.9
btn_dial_action_right_pressed.9
btn_dial_action_right_selected.9
btn_dial_normal.9
btn_dial_pressed.9
btn_dial_selected.9
btn_dial_textfield_activated.9
btn_dial_textfield_normal.9
btn_dial_textfield_pressed.9
btn_dial_textfield_selected.9
Screen Shot of what it looks like:
You have ideas on how to do (even call_background.xml is different )
I did ok, this is for you (although I have to change something again)
could we see a teaser screenie on the streak with this, thanks guys!
nice work!

[Q] Where is my homescreen wallpaper stored on ICS?

Hello all
As stated in the title I would like to know where exactly the default homescreen wallpaper image is stored on the ICS file system?
I am using version 4.0.3
Say for example I have a friend with a cool background wallpaper and that I want a copy of it.
Where exactly would I look in the android file system on his phone to get a copy of it?
Note: I do not want to download an app which manages my wallpaper images I want to find out how it works on ICS so that I can manage it myself.
I googled a bit and found the tutorial below at the end of this email.
It would appear that (on Gingerbread) wallpaper is managed by framework-res.apk
When I looked however at the different png files in "framework-res/res/drawable-hdpi" on my ICS installation I nothing what so ever that looks like my current home screen.
Another thread suggests the the wallpaper is stored under the system/media
On ICS I have 4 folders at that level
alarms
notifications
ringtones
ui
On ICS there are no images in any of these folders. The above was most likely true for Gingerbread but not ICS.
Is wallpaper managed by the launcher or by ICS itself?
Am I the only one who had this problem on ICS?
Can any one please help or provide a few clues?
# tutorial start
One of the most interesting leads I found is the tutorial below
http://forum.xda-developers.com/showthread.php?t=1057132&page=2
Difficulty level: Medium
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>
9. Create a 480x800 png to your liking, name it mybackground.png and place it in drawable-hdpi folder
9. Recompile framework-res.apk
# tutorial end
TIA
@+
On your pc or in root explorer unzip the rom
then system\app\TwWallpaperChooser\res\drawable-hdpi
Unzip as you go..
stock wallpapers are in drawable-hdpi
Hope this helps

[RESOURCES] - Theming the TF201: tools, processes, locations, etc.

Ok, so we have a couple of threads in the Atrix Forums, that have helped us themers along, and with the custom Roms coming along for the Prime, I have started to see a need for this type of thread here.
The goal of this thread is to have a place for us to discus themeing questions, locations, problems, etc.; that way we are not cluttering up the individual theme or rom threads with questions or problems.
As we are unable to let successively recompile the stock Asus TF201 SystemUI.apk, this thread is primarily intended for custom roms like AOKP, CM9, etc.
If you are looking to theme your stock SyetemUI, you can simply copy the apk to your computer, open the .apk file with a zip program (like Winrar) pull out the following folder: /res/drawable-mdpi
Look through the folder, find .png files that you would like to replace, and then add your new .png files to the .apk (using Winrar or other) in the same location the original one is at. ---> Read the following rules first! <---
- Make sure to select "store" for the compression method, when replacing/adding the .png files.
- The new .png file you are using should roughly be the same dimensions as the original you are replacing.
- Leave .9.png files alone. .9.png files have to be decompiled/recompiled for them to work properly. Since, you can not successfully recompile the stock Asus systemui.apk, you can not replace .9.pngs!!!!
All that being said, lets move on to the Roms we can actually theme...
Below, I have quoted the OP from two Atrix threads that have always helped me.
*Note: These locations are for Gingerbread, however, there is some continuity between Gingerbread & ICS; although it seems a lot of the stuff that was in the framework-res for Gingerbread, it now in the systemui for ICS.
Also, if you change something in a xml file and it doesn't change, you may want to see if the same xml line is in the same file & folder in both the framework-res & systemui, and change both.
Things you should know before you get started:
- If you are replacing a 9.png or editing a xml, you will have to deompile your apk, edit, and then recompile it.
- Recompiling the camera.apk seems to break the camcorder function, and will result in a FC.
Besides the Post Below this one, here is another up-to-date guide on using APK Tools, specifically for ICS:
http://forum.xda-developers.com/showthread.php?t=1511752
Use this web page to get your custom Hex Colors:
http://www.colorpicker.com/
Main XDA General Theme Thread (get more exposure/help for your question):
http://forum.xda-developers.com/showthread.php?t=468254
***If you have any other helpful guides, webpages, etc. that you think will help us, post them, and I'll add them to the OP.***
(This quote is from: http://forum.xda-developers.com/showthread.php?t=1060199 and thanks should go to that OP).
jimbush3 said:
I know that there are a good number of Atrix users who are new to android, new to theming with android, or like me - both. It can take hours to find the right information to make the changes that you want to make, only to find out that those types of changes are phone specific and that guide that you finally found after hours of searching doesn't even apply. I ask that all Atrix themers contribute to this thread with their knowledge, processes, and best practices for theming the Atrix. This way, we can share knowledge amongst each other as well as set up some accurate guide for other Atrix themers just getting started.
Contents:
Post 1 of this thread:
apk Manager Guide
Framework Assistant - tool to push/pull framework-res.apk
Editing OR removing the status bar clock color in services.jar
Post 2 of this thread:
Setting the notification dropdown shade to transparent
I'll start off with a post that I made yesterday in response to someone's question about apk Manager.
1. apk Manager Atrix Guide
The file I am going to discuss here is /system/framework/framework-res.apk. This file contains most of the elements involved in theming your phone. There are many other smaller locations to edit, but this file contains the bulk.
Before we get started on using apk Manager, we should understand a few things about framework-res apk. This file consists of a few important elements:
regular png image files - these are standard png images and can be edited with your image editing program and saved without any problems.
draw-9 png image files - these are special types of png images denoted by a .9.png in the filename. The android system reads these filenames and recognizes the image as a stretchable image. The system knows how to stretch the image based on a 1px wide border that the image has. This border contains black dots/lines along each of the four edges that tell the system how to stretch it - if you mess with this border then the way the image stretches will changes and you may not be able to decompile/recompile the apk. The following link provides info on editing draw-9s, but I found it easiest to extract them with apk Manager, edit in gimp without touching the border, and then recompiling with apk M. More info on draw-9 pngs
xml files - these files are in binary code in the framework-res.apk. The apk needs to be decompiled in order to return these to human readable code. Also, many of your xml files are hidden within the resources.arsc file in the framework-res.apk and cannot be accessed unless you decompile.
In order to make any changes to the xml files or the draw-9 pngs within framework-res.apk you need to decompile it rather than extract it. Extracting the framework-res.apk with a program like winzip simply unzips the file and does not break the code back down to an editable format. Decompiling the framework-res.apk with a program like apk Manager will actually break down the resources.arsc file into the sepereate xmls folders (values, etc.) and also restore the instructions border to draw-9 pngs.
Draw-9 images not edited correctly will not stretch properly in the system and may cause decompilation/recompilation errors. XML files not edited correctly may also cause recompilation errors. It is very important to pay attention to the log.txt file for any errors that may be occurring during your decompilation/recompilation process.
Download apk Manager
Now here is what I've learned about apk Manager:
put framework-res.apk in the place-apk-here-for-modding folder
run the script
enter 22 to select an apk, then 1 to select your apk
press 9 to decompile the apk
go into the projects/framework-res.apk/res/drawable-hdpi folder and edit your pngs or xmls (maintain the border)
go back to the script once your done editing and enter 11 to compile
when asked if it is a system apk enter y
when asked if you want to extract other files too enter y Do not skip this step, apk Manager will seem to produce a working framework-res.apk if you skip this step but when I did it soft bricked my phone
go into the keep folder that was created and delete any pngs that you changed in the projects folder
if you change any xml files, you will also need to delete the resources.arsc file from the keep folder (this is because mane of the xml files are compiled into this resources.arsc, so to tell apk manager to rebuild it with the new xml, we need to delete the original)
go back to the script and press any key to continue
your recompiled framework-res will be in the place-apk-here-for-modding as unsigned-framework-res.apk
extract unsigned-framework-res.apk using winzip, or similar program (this is being it is compressed incorrectly)
go into the folder where you just unzipped the framework and zip it up with the compression mode set to Store - call it framework-res.apk
you are ready to go with a properly editing framework-res.apk, put it on your phone any way you like
Make sure that you have no errors when de-compiling or re-compiling. It might seem like everything is going ok, but you could end up soft bricking your phone if you don't check the log.txt in the apk Manager main folder. Check the log.txt after every decompile and recompile to ensure that you don't have a damaged framework-res.apk.
The output in log.txt should like like this for a proper decompile:
Code:
--------------------------------------------------------------------------
|Sun 05/01/2011 -- 20:11:47.57|
--------------------------------------------------------------------------
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
Could Not Find C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
And like this for a proper recompile:
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\images\Thumbs.db')
(skipping index file 'C:\Users\jbush\Documents\Custom Atrix\Programs\apk_manager_4.9\other\..\projects\framework-res.apk\assets\webkit\Thumbs.db')
The system cannot find the file specified.
If you get any errors about your images or xml then you need to fix them before you can recompile.
#framework-assistant2. Framework-res.apk Assistant
Here is a tool which I use regularly to pull the current framework-res.apk from my phone, as well as to push any updated framework-res.apk to my phone. To use this batch program you need to:
Download the View attachment 584667
Extract the zip to whereever you want the program to reside
To pull your current framework-res.apk - run the Framework-Assistant.bat and tell it to pull
To push an updated framework-res.apk - place the updated framework-res.apk in the bin/push folder, run the Framework-Assistant.bat and tell it to push the updated framework-res.apk
It is always a good idea to tell it to back up the current before pushing a new
As with any and all framework-res.apk pushes, this has the ability to soft brick your phone depending on the framework-res.apk you push, or anything else for that matter. Use at your own risk.
Here are my steps to edit framework-res.apk from start to finish which might help those unfamiliar with the process:
Run Framework-Assistant.bat and answer y to pull the current framework-res.apk from the phone, but n to push the latest version (this will simply retrieve the current framework-res.apk from your phone)
Copy that framework-res.apk from the Framework Assistant/bin/pull fodler into the place-apk-here-for-modding folder of apk Manager
rename framework-res.apk to something distinguishable, I add the current time (ex: framework-res-1016.apk). Trust me, things can get messy if you end up making a few passes with different edits, you need to keep your stuff straight.
Run Script.bat in the apk Manager folder, 22 to select which apk to use, then 9 to decompile
Go into the projects/framework-res-1016.apk folder and make any changes you wish. Most png changes will be in drawable-hdpi, xmls are pimarily located in the values and layout folders.
Once I've finished making updates, run Script.bat again, 22 to select the proper apk, then compile with 11 - follow all compilation steps above all the way through zipping it as store.
Place the new framework-res.apk in the Framework Assistant/bin/push folder and run Framework-Assistant.bat
Choose y to both pull and push the framework-res.apk (I find its always a good idea to pull your latest working framework-res.apk from the phone before dropping a new one in)
If you anticipate more edits, go back to apk Manager and paste the new framework-res.apk in the place-apk-here-for-modding fodler of apk Manager and rename it with the current time attached (ex: framework-res-1023.apk)
Delete the unsignedframework-res-1016.apk and the unsignedframework-res.apk fodler (just to keep things clean)
You now have an edited framework-res.apk on your phone and are set to fix this little issues you missed on this pass, just run the apk Manager Script.bat again, enter 22 to access your latest framework-res.apk (framework-res-1023.apk) and repeat the process.
#framework-assistant3. Editing OR removing the status bar clock in services.jar
You will need:
Some zip program, I use winrar
JDK - Java Development Kit Get the JDK
baksmali to decompile and recompile the classes.dex file - View attachment 587999
Notepad++ free editor for code editing (I recommend this program for any/all code editing, apart from hex)
Here is how to change the status bar clock color:
Install the JDK
Extract baksmali to your computer
Retrieve services.jar from the /system/framework folder
Extract services.jar using your zip program (right click on the file and choose to extract)
One of the extracted files is classes.dex, copy it into the baksmali folder
Run decompile.bat in the baksmali folder - this will decompile classes.dex and place the contents in a new folder called classout
Navigate to classout\com\android\server\status
The next step involves changing clock color:
open StatusBarIcon.smali with Notepadd++ and find this entry
Code:
.line 61
const v6, -0x1
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setTextColor(I)V
const v6, -0x1 identifies the color of the status bar clock. I changed this value to "const v6, -0xff000000 to set my clock to black. Essentially the last 6 digits of this entry will determine the color of the clock. Set the last six to any html color code (google it) to set your clock color. I have only tried black here as it is all I needed, so I can't personally guarantee that anything else will work.
The next step involves removing the clock:
open StatusBarPolicy.smali with Notepadd++ and find this entry
Code:
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->updateClock()V
It should be under ".line 592", now add this line underneath the line just mentioned:
Code:
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
Once your done editing, save the file
Navigate back to the baksmali folder and run recompile.bat - this will rename the original classes.dex file to orig-classes.dex, and the recompiled file is saved as classes.dex
Zip up the new classes.dex along with the META-INF folder that was extracted from services.jar as, you guessed it, services.jar Leave the compression setting on Normal
Put services.jar back in your system/framework folder
This is all that I know how to do with servies.jar right now, if anyone has some additional good info please post it to this thread and I will add it on.
Can't believe I forgot to thank all those who have contributed both directly and indirectly to my knowledge thus far: Nottach, NyugenHuu, KennethPenn, riral, tonecreationz, gera4eva, HFHimself, and many random threads I found on the wonderful xda forums.
Click to expand...
Click to collapse
(This quote is from: http://forum.xda-developers.com/newreply.php?do=newreply&p=16008460 and thanks should go to that OP).
*Again, these are from Gingerbread, but may be in the same xml/location as ICS (haven't checked them all yet).
Nottach said:
Editing the status bar.
Now that you can see what needs fixing in the status bar we will decompile your original (backup) systemui.apk and edit the xmls. I will assume you have apkmanager and know how to use it. There are other guides for that so I won't go to deep into it. Look here for a video tutorial on apkmanager.
1. Decompile systemui.apk
2. Make edits to XMLs.
These are the edits I make most often.
/res/layout/status_bar.xml -
Code:
<TextView android:textSize="16.0sp" android:textStyle="bold" android:gravity="left|center" android:id="@id/onsText" android:paddingLeft="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="0" /> ///HIDES CARRIER TEXT
/res/layout/status_bar_expanded.xml -
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="?android:textAppearanceLarge" android:textColor="[color="Red"]#ffffffff[/color]" android:layout_gravity="center_vertical" android:id="@id/dateLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> [color="red"]///DATE TEXT COLOR[/color]
/res/values/drawable.xml -
Code:
<item type="drawable" name="shade_bgcolor">[color="Red"]#ff162939[/color]</item> [color="red"]///NOTIFICATION TITLE BACKGROUND (eg. Ongoing)[/color]
/res/values/style.xml -
Code:
<style name="TextAppearance.StatusBar.Title" parent="@android:style/TextAppearance.StatusBar">
<item name="android:textAppearance">?android:textAppearanceSmall</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///NOTIFICATION TITLE TEXT (eg. No Notifications)[/color]
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Once recompiled you will have unsignedSystemUI.apk in your place_here_for_modding folder. Open it in winRAR along with your previous version of SystemUI.apk from the first draft and drag the images from the first draft drawable-hdpi folder into the new unsignedSysemUI.apk's corresponding folder, overwriting the images there. Now rename unsignedSystemUI.apk to SystemUI.apk and overwrite your first draft version. This is your second draft SystemUI.apk and we will create a second draft framework-res.apk in the next step using these same steps.
Click to expand...
Click to collapse
Nottach said:
Editing the framework.
We will now decompile your original (backup) framework-res.apk and edit the xmls. Again using apkmanager.
1. Decompile systemui.apk
2. Make edits to XMLs.
These are the edits I make most often.
/res/drawable/progress_horizontal.xml -
Code:
<?xml version="1.0" encoding="UTF-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@id/background">
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff262223" android:endColor="#ff414042" android:angle="270.0" android:centerY="0.13" android:centerColor="#ff262223" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</item>
<item android:id="@id/secondaryProgress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#80[color="red"]547f8c[/color]" android:endColor="#a0[color="red"]87cce2[/color]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#80[color="red"]547f8c[/color]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
<item android:id="@id/progress">
<clip>
<shape>
<corners android:radius="5.0dip" />
<gradient android:startColor="#ff[color="red"]547f8c[/color]" android:endColor="#ff[color="red"]87cce2[/color]" android:angle="-90.0" android:centerY="0.13" android:centerColor="#ff[color="Red"]547f8c[/color]" />
<stroke android:width="2.0px" android:color="#ff999999" />
</shape>
</clip>
</item>
</layer-list>
/res/values/styles.xml - text colors
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">[color="red"]#ff555555[/color]</item> [color="red"]///POP UP MENU TEXT COLOR[/color]
</style>
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="textColor">[color="red"]#ff555555[/color]</item> [color="red"]///SECONDARY MENU TEXT COLOR[/color]
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
[color="red"]///DELETED LINE[/color]
</style>
Code:
<style name="TextAppearance.WindowTitle" parent="@style/TextAppearance">
<item name="textSize">14.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[color="Red">#ffffffff[/color]</item> [color="red"]///WINDOW TITLE TEXT (App Title Bar)[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.Title" parent="@style/TextAppearance.StatusBar">
<item name="textStyle">bold</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///STATUS BAR TITLE (May be same as SystemUI?)[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">16.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///FIRST LINE OF NOTIFICATION[/color]
</style>
Code:
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar">
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///2ND LINE OF NOTIFICATION[/color]
</style>
Code:
<style name="Widget.Button" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmallInverse</item>
<item name="textColor">[color="red"]#ffffffff[/color]</item> [color="red"]///BUTTON TEXT COLOR[/color]
<item name="gravity">center</item>
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
</style>
After making your xml edits recompile, be sure to delete the edited files and resources.arsc from the keep folder during recompiling. If you don't you won't see any changes.
If you compiled with no errors you're good to go. If you have errors then you have a mistake in your code. You can check the apkmanager log for line number errors.
Now following the same steps as we did for SystemUI we will overwrite the images in the new unsignedframework-res.apk with those from the first draft framework-res.apk. By dragging from one winRAR window to the other. Once you've done that rename the new apk and overwrite the first draft version. Create a new update zip, using "store" or "none" and flash it. You should now see the text edits you just made.
Click to expand...
Click to collapse
Nottach said:
Advanced Tips
.9 Images.
--If a .9.png is all (every pixel) one color then the .9 patch does not matter.
Hex editing.
--It is not always necessary to decompile to make text color or slider edits. Instead if know what color you're looking for you can use a hex editor to make the edits.
--For instance, to change text colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract resources.arsc
Open resources.arsc in a hex editor.
Search for the color in this format BB GG RR AA, as opposed to usual aarrggbb. (Red = ffff0000 = 00 00 FF FF)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
--To change slider colors without decompiling you would.
Open framework-res.apk in winRAR.
Extract /res/drawable/progress_horizontal.xml
Open progress_horizontal.xml in a hex editor.
Search for 08 00 00 1C.
After each instance examine the next four pairs.
The first few will be grey but eventually youll come to a color.
That's where you start editing. (6 total)
Replace with desired color following same format.
Save and overwrite original by dragging new version into winRAR.
Click to expand...
Click to collapse
Reserved!!
Awesome. Thanks!
Great guides for the noobies Swiftks =) Also i think i might have a work around for the patch9 pngs, Ill msg you on GChat
great stuff, thanks for sharing mate.
Sent from my TF201

[GUIDE] HOW TO for STYLES.XML

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Style Resource
A style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or to an entire Activity or application (from within the manifest file).
How to start?
Open your App's Style.xml
(This is Settings.apk but you can do this also in other App)
res/values/style.xml
You will see
Code:
<style name="info_label">
<item name="android:textAppearance">@style/TextAppearance.info_label</item>
<item name="android:paddingRight">4.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
Thats the properties of Style name "info_label"
We can use styles.xml to theme our App
For example we want the Settings Application to be White Background but the other Application is just the Normal Background
To do this we need to create a new style
Add this to your Styles.xml
Code:
<style name="any_style_name" parent="@android:style/Theme">
</style>
To add a Custom BackGround to our App Add this inside the <style name="any_style_name">
<item name="android:windowBackground">@drawable/your_png_name</item>
Create a png in any name you want then save it to res/drawable-ldpi
So your Styles.xml will looks like this
Code:
<style name="any_style_name" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/your_png_name</item>
</style>
Setting our Custom Theme
Open your App's Manifest then look for this (This will apply our Custom Theme on the whole App)
Code:
<application android:label="@string/settings_label"
android:theme="@style/your_style_name"
android:icon="@drawable/ic_launcher_settings"
android:taskAffinity="">
If you want only to theme a certain Activity add it to
Code:
<activity android:theme="@style/your_style_name"
android:label="@string/settings_label_launcher"
android:name="Settings"
android:taskAffinity="com.android.settings"
android:clearTaskOnLaunch="true"
android:launchMode="singleTop">
If youre a little bit confuse here's my Manifest my style name is Starting at "potato"
SAMPLE :laugh:
If you want to add more properties open your framework's Styles.xml then search for "<style name="Theme">"
You will see lot of items, If you want that to include in your style just add "android:" before the item
ex.
Code:
<item name="windowTitleStyle" [user=262514]@style[/user]/WindowTitle</item>
to
Code:
<item name="android:[COLOR="Red"][/COLOR]windowTitleStyle" [user=262514]@style[/user]/WindowTitle</item>
if your item has @style/WindowTitle"
create a new style again
you can also change its name
ex
 @style/SuperWindowTitle
then create the style
Code:
<style name="SuperWindowTitle">
<item name="android:textAppearance">@android:style/TextAppearance.Large</item>
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
</style>
Now you have a custom TitleBar text on your theme you can also change its properties
just modify this lines inside it
Code:
<item name="android:textAppearance">@android:style/TextAppearance.Large</item>
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
Now your styles .xml will look like this
Code:
<style name="any_style_name" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/your_png_name</item>
<item name="android:windowTitleStyle" [user=262514]@style[/user]/SuperWindowTitle</item>
</style>
<style name="SuperWindowTitle">
<item name="android:textAppearance">@android:style/TextAppearance.Large</item>
<item name="android:maxLines">1</item>
<item name="android:scrollHorizontally">true</item>
</style>
TextColors
Code:
<item name="android:textAppearance">@style/TextAppearance</item>
<item name="android:textAppearanceInverse">@style/TextAppearance.Inverse</item>
<item name="android:textColorPrimary">@color/primary_text_dark</item>
<item name="android:textColorPrimaryDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="android:textColorSecondary">@color/secondary_text_dark</item>
<item name="android:textColorPrimaryInverse">@color/primary_text_light</item>
<item name="android:textColorSecondaryInverse">@color/secondary_text_light</item>
<item name="android:textColorPrimaryNoDisable">@color/primary_text_dark_nodisable</item>
<item name="android:textColorSecondaryNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="android:textColorPrimaryInverseNoDisable">@color/primary_text_light_nodisable</item>
<item name="android:textColorSecondaryInverseNoDisable">@color/secondary_text_light_nodisable</item>
<item name="android:textColorHintInverse">@color/hint_foreground_light</item>
<item name="android:textAppearanceLarge">@style/TextAppearance.Large</item>
<item name="android:textAppearanceMedium">@style/TextAppearance.Medium</item>
<item name="android:textAppearanceSmall">@style/TextAppearance.Small</item>
<item name="android:textAppearanceLargeInverse">@style/TextAppearance.Large.Inverse</item>
<item name="android:textAppearanceMediumInverse">@style/TextAppearance.Medium.Inverse</item>
<item name="android:textAppearanceSmallInverse">@style/TextAppearance.Small.Inverse</item>
<item name="android:textCheckMark">@drawable/indicator_check_mark_dark</item>
<item name="android:textCheckMarkInverse">@drawable/indicator_check_mark_light</item>
Buttons
Code:
<item name="android:buttonStyle">@style/Widget.Button</item>
<item name="android:buttonStyleSmall">@style/Widget.Button.Small</item>
<item name="android:buttonStyleInset">@style/Widget.Button.Inset</item>
<item name="android:buttonStyleToggle">@style/Widget.Button.Toggle</item>
Apps Background & More
Code:
<item name="android:windowBackground">@drawable/potato</item> Background of the App
<item name="android:windowTitleSize">30.0px</item> Titlebar Size
<item name="android:windowTitleStyle">@style/WindowTitle</item> Syle of the Titlebar Text
<item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item> Syle of the Titlebar
Others
Code:
[FONT="Arial"][SIZE="6"]OTHERS[/SIZE][/FONT]
[SIZE="4"]
<item name="android:popupWindowStyle">@style/Widget.PopupWindow</item> PopUps
<item name="android:progressBarStyle">@style/Widget.ProgressBar</item> ProgressBar
<item name="android:progressBarStyleHorizontal">@style/Widget.ProgressBar.Horizontal</item> ProgressBar
<item name="android:progressBarStyleSmall">@style/Widget.ProgressBar.Small</item> ProgressBar
<item name="android:progressBarStyleLarge">@style/Widget.ProgressBar.Large</item> ProgressBar
<item name="android:seekBarStyle">@style/Widget.SeekBar</item> SeekBar
<item name="android:radioButtonStyle">@style/Widget.CompoundButton.RadioButton</item> RadioButton
<item name="android:scrollViewStyle">@style/Widget.ScrollView</item>
<item name="android:spinnerStyle">@style/Widget.Spinner</item> Spinner
<item name="android:checkBoxPreferenceStyle">@style/Preference.CheckBoxPreference</item> CheckBox
<item name="android:editTextPreferenceStyle">@style/Preference.DialogPreference.EditTextPreference</item> EditText
[/SIZE]
NOTE
If you see "@style/Preference.DialogPreference.EditTextPreference"
Go to styles.xml of your framework search for that style then copy the style to your App's Styles.xml :fingers-crossed:
System.out.println("RESERVED_2");
mariozawa said:
System.out.println("RESERVED_2");
Click to expand...
Click to collapse
i have a question, how can i add more drawable to fw-res and call it from JAVA? maybe its a noob question. thx before.
How do u compile settings? I compile it with no error but doesnt work
AuliaYF said:
i have a question, how can i add more drawable to fw-res and call it from JAVA? maybe its a noob question. thx before.
Click to expand...
Click to collapse
Try posting to this forum Bro
http://forum.xda-developers.com/forumdisplay.php?f=2197
m4RinKo2 said:
How do u compile settings? I compile it with no error but doesnt work
Click to expand...
Click to collapse
just check your manifest maybe theres something wrong there
Nice one!
U should share some pngs to.
Good share ... are you female by d way?
xXx~~~SHLOK~~~xXx said:
Good share ... are you female by d way?
Click to expand...
Click to collapse
Nope Im just a Handsome Guy with Samsung Galaxy Y :victory:
Updated with more Styles :victory:
Great tutorial mate, just what I need.
Could you add one more example for how to change framework background?
I would like to use one png in whole framework (settings background, email background, call app) or to be precise everywhere where it's possible.
I just can't find which png to change and what lines in styles.xml to change.
Tnx a lot
Sent from my LT26i using Tapatalk 4
funky0308 said:
Great tutorial mate, just what I need.
Could you add one more example for how to change framework background?
I would like to use one png in whole framework (settings background, email background, call app) or to be precise everywhere where it's possible.
I just can't find which png to change and what lines in styles.xml to change.
Tnx a lot
Sent from my LT26i using Tapatalk 4
Click to expand...
Click to collapse
Theres a guide bro created by deathnoticed at the development thrad:good:
you need to change window background and window color background
nice guide
mariozawa said:
Style Resource
A style resource defines the format and look for a UI. A style can be applied to an individual View (from within a layout file) or to an entire Activity or application (from within the manifest file).
How to start?
Open your App's Style.xml
(This is Settings.apk but you can do this also in other App)
res/values/style.xml
You will see
Code:
<style name="info_label">
<item name="android:textAppearance">@style/TextAppearance.info_label</item>
<item name="android:paddingRight">4.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
Thats the properties of Style name "info_label"
We can use styles.xml to theme our App
For example we want the Settings Application to be White Background but the other Application is just the Normal Background
To do this we need to create a new style
Add this to your Styles.xml
Code:
<style name="any_style_name" parent="@android:style/Theme">
</style>
To add a Custom BackGround to our App Add this inside the <style name="any_style_name">
<item name="android:windowBackground">@drawable/your_png_name</item>
Create a png in any name you want then save it to res/drawable-ldpi
So your Styles.xml will looks like this
Code:
<style name="any_style_name" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/your_png_name</item>
</style>
Setting our Custom Theme
Open your App's Manifest then look for this (This will apply our Custom Theme on the whole App)
Code:
<application android:label="@string/settings_label"
android:theme="@style/your_style_name"
android:icon="@drawable/ic_launcher_settings"
android:taskAffinity="">
If you want only to theme a certain Activity add it to
Code:
<activity android:theme="@style/your_style_name"
android:label="@string/settings_label_launcher"
android:name="Settings"
android:taskAffinity="com.android.settings"
android:clearTaskOnLaunch="true"
android:launchMode="singleTop">
If youre a little bit confuse here's my Manifest my style name is Starting at "potato"
SAMPLE :laugh:
Click to expand...
Click to collapse
hey sir does this work if i will use hex code instead of an image?..
cocoPIE_xda said:
hey sir does this work if i will use hex code instead of an image?..
Click to expand...
Click to collapse
yes or you can use @Color/nameOfColorInColor.xml
not working

[MOD|TUTORIAL]Pixel 2 XL Launcher Mods (Jan & Feb 2020) Updated 2/10/2020

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am not responsible for your device.
You must be rooted.​
The lastest uploads can be found HERE and HERE.
I will not be taking any more requests. Honestly, I'm just tired of modding this apk. I've got it how I like it, and I made a couple of other versions based off of what users have said they wanted.
If you want something different that what's posted here, you'll have to mod it yourself. See the section below to learn how to do that. It's not difficult, not "overly" time consuming, and the tools are free.
If you need help with how to complete the mods, or questions about the process in general, I will of course be more than willing to help you out. Just ask.
MIY (Mod It Yourself)
Have you used the instructions below to make your own unique mods to the Pixel 2 Launcher?
If so, you should share them with everyone! Post them up and I'll link to them here in the first post.
Also, let me know whether or not you found the instructions easy to understand.
I've heard that a lot of Android newbies have hopped on board with the release of the Pixel 2 series. If that's you, welcome to the wonderful world of Android!
Due to this, I'm going to take this tutorial from the top and break it down step by step.
The Setup
Tools Required:
A computer
Java installed: https://java.com/en/
A rooted Pixel 2 XL - How to root Pixel 2 XL
Proper drivers for the Pixel 2 XL.
Apktool - https://ibotpeaches.github.io/Apktool/ (scroll down and download the newest version)
Platform Tools (newest version - 16.0.2, at the time of this writing) - https://developer.android.com/studio/releases/platform-tools.html (Choose your OS version - Windows, OS, or Linux)
Text Editor - I use Notepad++ https://notepad-plus-plus.org/download/v7.5.1.html
7zip - a free zip extractor. Not necessary, but definitely better than using Windows built-in zip tool.
Step 1 - Ensure you have USB Debugging enabled on your phone
If you don't know how to do that:
Go to Settings>System>About Phone
Tap on "Build Number" seven times. You will see a message that says you are now a developer
Go back one screen to Settings>System
Click on "{ } Developer Options"
Scroll down a tiny bit to the "Debugging" section
Turn on "USB Debugging"
Plug your phone into your PC and answer the prompt on your phone to "Allow USB debugging?" Check the checkbox to "Always allow from this computer," then click "OK."
Step 2 - Ensure you have the proper drivers for the Pixel 2 XL installed on your PC. Plugging up your phone to your PC should cause Windows to automatically download and install them for you, or if you've ever had a Pixel or Nexus phone in the past, then you probably already have them; but if not, you can get them from here - https://developer.android.com/studio/run/win-usb.html
Step 3 - If necessary, download and install Notepad++ or whatever text editor you downloaded.
Step 4 - Create a new folder somewhere and call it whatever you like. We are going to put all of the stuff we just downloaded in said folder. For the purposes of this tutorial we'll call the folder MyAndroidMods.
Step 5 - Download Apktool from the link above and put it in in the MyAndroidMods folder. Rename the apktool_2.3.0.jar (version 2.3.0 at the time of this writing) to just apktool.jar
Step 5.5 - Download the Apktool Windows wrapper script - https://ibotpeaches.github.io/Apktool/install/ (This step is not necessary, but it makes things easier, trust me)
- Do as the instructions say, and right-click the hyperlink "wrapper script" text, and choose "Save Link As..." from the context menu. Save it as "apktool.bat" to the MyAndroidMods folder.
- If you should accidentally save it as "apktool.bat.txt," just delete the ending ".txt" part so that it becomes just "apktoo.bat" Windows will ask you if you're sure you want to change it because changing it might make the file unstable. Just click "Yes."
- The point of the apktool.bat file is that when we get to the command line part we will only have to type "apktool (perform command here)" instead of "java -jar apktool.jar (perform command here)." Believe me, every second saved is great.​Step 6 - Dowload the Platform Tools using the link provided above. It doesn't matter where you save the zip.
Step 7 - Extract the "platform-tools-latest-windows" zip. It doesn't matter where.
Step 8 - Copy all of the contents from inside the extracted "platform-tools-latest-windows\platform-tools" folder into your MyAndroidMods folder.
Step 9 - On your PC, go to C:\Windows\System32
Step 10 - Scroll down until you find the "cmd.exe" file.
Step 11 - Copy the cmd.exe file into your MyAndroidMods folder (this way we won't have to CD into your folder)
Step 13 - On your phone, go to /system/priv-app/NexusLauncherPrebuilt and copy the NexusLauncherPrebuilt.apk to your phone's Main Storage.
Step 14 - Plug your phone into your PC if it's not already.
Step 15 - On your phone, click the "USB charging this device" notification and change it to "Transfer files."
Step 15 - Copy or move the NexusLauncherPrebuilt.apk from your phone's Main Storage to the MyAndroidMods folder on your PC.
Step 16 - On your phone, go to /system/framework and copy the framework-res.apk to your phone's Main Storage.
Step 17 - Copy or move the framework-res.apk from your phone's Main Storage to the MyAndroidMods folder on your PC.
Step 18 - THE SET UP IS NOW COMPLETE! CONGRATULATIONS!
Ensure that your MyAndroidMods folder looks like the image below. Notice everything is in the root of the MyAndroidMods folder. Ensure that there is: apktool.bat, apktool.jar, cmd.exe, all the platform tool files, framework-res.apk, and the NexusLauncherPrebuilt.apk.
Using Apktool
For the purposes of this tutorial, we will only be concerning ourselves with three apktool commands:
- Installing the framework
- Decompiling an apk
- Recompiling an apk
Step 1 - The first thing we need to do is install the framework. To do that:
- Double click the cmd.exe in your MyAndroidMods folder
- In the command prompt window that opens up, type:
Code:
apktool if framework-res.apk
- You should then see a message that says, "Framework installed to:.......", like so:
Step 2 - Decompiling the Launcher.apk
- In the command prompt window, type:
Code:
apktool d NexusLauncherPrebuilt.apk
- Once that process is finished, it should look like this:
Step 3 or the last step after you've made your mods - Recompiling the apk
- In the command prompt window, type:
Code:
apktool b NexusLauncherPrebuilt -c
- Once that process is finished, it should look like this:
The Good Stuff - How to Make the Mods
Open up the files mentioned in the sections below using your favorite text editor.
To remove the text from ONLY the home screen:
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseIcon.Workspace" parent= [user=262514]@style[/user]/BaseIcon">
<item name="android:shadowColor">?workspaceShadowColor</item>
<item name="android:shadowRadius">2.0</item>
<item name="ambientShadowColor">?workspaceAmbientShadowColor</item>
<item name="ambientShadowBlur">2.5dip</item>
<item name="keyShadowColor">?workspaceKeyShadowColor</item>
<item name="keyShadowBlur">1.0dip</item>
<item name="keyShadowOffset">0.5dip</item>
</style>
Add this line somewhere in between the <style> brackets:
Code:
<item name="android:textColor">#00000000</item>
** This will also remove the text from the applications inside folders on the home screen when in the "dark theme." Continue reading towards the bottom to find out how to add that text back.
SAVE THE FILE
To remove the text from the app drawer:
Go to res/values/styles.xml, and find this section:
Code:
<style name="BaseIcon">
<item name="android:textColor">?android:textColorSecondary</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowRadius">0.0</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
Change the "android:textColor" value from "?android:textColorSecondary" to #00000000.
SAVE THE FILE
To make the G in the search bar always be in color:
Go to res/values/styles.xml, and find this section:
Code:
<style name="HotseatQsbTheme">
<item name="gIcon">@drawable/ic_super_g_shadow</item>
<item name="micIcon">@drawable/ic_mic_shadow</item>
</style>
Change it to this:
Code:
<style name="HotseatQsbTheme">
<item name="gIcon">@drawable/[COLOR="red"][B]ic_super_g_color[/B][/COLOR]</item>
<item name="micIcon">@drawable/[COLOR="red"][B]ic_mic_color[/B][/COLOR]</item>
</style>
SAVE THE FILE
To change the icon size, change the number or rows or columns in home screen, to change the number of icons in the hotseat, or to change the max number or rows or columns in home screen folders:
Go to /res/xml/device_profiles.xml, and find this line:
Code:
<profile launcher:name="Taimen" launcher:minWidthDps="387.0" launcher:minHeightDps="750.0" launcher:numRows="5" launcher:numColumns="5" launcher:numFolderRows="4" launcher:numFolderColumns="4" launcher:minAllAppsPredictionColumns="4" launcher:numHotseatIcons="5" launcher:iconSize="54.0" launcher:landscapeIconSize="52.0" launcher:iconTextSize="13.0" launcher:defaultLayoutId="@xml/default_workspace_5x5" />
Change these values to whatever size you want. They should be self-explanatory:
- launcher:iconSize="54.0"
- launcher:landscapeIconSize="52.0"
- launcher:numRows="5"
- launcher:numColumns="5"
- launcher:numFolderRows="4"
- launcher:numFolderColumns="4"
- launcher:numFolderRows="4"
- launcher:numHotseatIcons="5"
*Keep in mind that changing the iconSize, numRows, and numColumns affects both the home screen and the app drawer.
SAVE THE FILE
To remove the page indicator from the home screen:
Go to /res/values/dimens.xml, and find these lines:
Code:
<dimen name="dynamic_grid_min_page_indicator_size">32.0dip</dimen>
<dimen name="dynamic_grid_page_indicator_line_height">1.0dip</dimen>
Change both of their values to "0.0dip"
To remove the home screen app drawer up arrow:
Go to /res/values/dimens.xml, and find these lines:
Code:
<dimen name="all_apps_caret_size">13.0dip</dimen>
<dimen name="all_apps_caret_workspace_offset">18.0dip</dimen>
Change both of those values to "0.0dip"
SAVE THE FILE
To remove the white-haze background from the hotseat and remove the white background from the app drawer:
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseLauncherThemeWithCustomAttrs" parent= [user=262514]@style[/user]/BaseLauncherTheme">
<item name="allAppsScrimColor">#ccffffff</item>
<item name="allAppsNavBarScrimColor">#66ffffff</item>
<item name="popupColorPrimary">#ffffffff</item>
<item name="popupColorSecondary">#fff5f5f5</item>
<item name="popupColorTertiary">#ffe0e0e0</item>
<item name="isMainColorDark">false</item>
<item name="isWorkspaceDarkText">false</item>
<item name="workspaceTextColor" [user=365912]@and[/user]roid:color/white</item>
<item name="workspaceShadowColor">#b0000000</item>
<item name="workspaceAmbientShadowColor">#33000000</item>
<item name="workspaceKeyShadowColor">#44000000</item>
<item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
<item name="widgetsTheme" [user=262514]@style[/user]/WidgetContainerTheme</item>
</style>
Change the "allAppsScrimColor" value to "#00000000"
**After making the app drawer mostly transparent, you may want to consider changing the text for the "light theme" to white with a text shadow so it shows up better. Keep reading to find out how to do that.
SAVE THE FILE
To remove the semi-transparent, app drawer navbar shade while in the "light theme":
Go to /res/values/styles.xml, and find this section:
Code:
<style name="BaseLauncherThemeWithCustomAttrs" parent= [user=262514]@style[/user]/BaseLauncherTheme">
<item name="allAppsScrimColor">#ccffffff</item>
<item name="allAppsNavBarScrimColor">#66ffffff</item>
<item name="popupColorPrimary">#ffffffff</item>
<item name="popupColorSecondary">#fff5f5f5</item>
<item name="popupColorTertiary">#ffe0e0e0</item>
<item name="isMainColorDark">false</item>
<item name="isWorkspaceDarkText">false</item>
<item name="workspaceTextColor" [user=365912]@and[/user]roid:color/white</item>
<item name="workspaceShadowColor">#b0000000</item>
<item name="workspaceAmbientShadowColor">#33000000</item>
<item name="workspaceKeyShadowColor">#44000000</item>
<item name="workspaceStatusBarScrim">@drawable/workspace_bg</item>
<item name="widgetsTheme" [user=262514]@style[/user]/WidgetContainerTheme</item>
</style>
Change the "allAppsNavBarScrimColor" value to "#00000000".
Alternatively, if you want to make it a semi-transparent black color, change that value to "#80000000".
SAVE THE FILE
To change the app drawer "light theme" text to white with a text shadow:
Go to /res/values/styles.xml, find this section, and perform the changes in red:
Code:
<style name="BaseIcon">
<item name="android:textColor">?android:textColorSecondary</item> [B][COLOR="red"]**Change this value to #ffffffff**[/COLOR][/B]
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowColor">#b0000000</item>[B][COLOR="red"] **ADD this line**[/COLOR][/B]
<item name="android:shadowRadius">0.0</item> [B][COLOR="Red"]**Chang this value to 2.0 or 3.0. This value refers to the blur radius of the shadow.**[/COLOR][/B]
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
**The BaseIcon style above also controls the folder icon text and the deep shortcut icon text. Since we've changed the text to white here, we need to change the folder icon text to a darker color so that it shows up better.
Also, since we've added a text shadow to the text to make it stand out better again light backgrounds, we need to alter the deep shortcut text to keep it looking clean.
Keep reading to find out how to do both of these things.
SAVE THE FILE
To change the color of the folder application icon text and remove its shadow:
1. Go to /res/values/styles.xml.
2. Add the code below as an entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
2.5 The color is set by the "android:textColor" value. In my example below it's set to a dark gray (the default color). You can set the color here to whatever you want.
Code:
<style name="FolderIcon">
<item name="android:textColor">#00000000</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
3. Also, add the code below as another entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
Code:
<style name="FolderApplications">
<item name="android:textColor">?android:textColorSecondary</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:shadowColor">#00000000</item>
<item name="android:shadowRadius">0.0</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
SAVE THE FILE
4. Go to /res/layout/folder_application.xml
5. Find this line:
Code:
<com.android.launcher3.BubbleTextView android:includeFontPadding="false" launcher:iconDisplay="folder" style= [user=262514]@style[/user]/BaseIcon"
6. Change the "style" value from @style/BaseIcon to @style/FolderApplications
SAVE THE FILE
7. Go to /res/layout/folder_icon.xml
8. Find this line:
Code:
<com.android.launcher3.views.DoubleShadowBubbleTextView android:layout_gravity="top" android:id="@id/folder_icon_name" android:focusable="false" android:layout_width="fill_parent" android:layout_height="fill_parent" style= [user=262514]@style[/user]/FolderIcon" />
9. Change the "style" value from @style/BaseIcon to @style/FolderIcon
SAVE THE FILE
To make the status bar and navbar icons stay white when in the app drawer while using the "light theme":
1. Go to \smali\com\android\launcher3\allapps\AllAppsTransitionController.smali
2. Find this line (it should be line 1737):
Code:
invoke-direct {p0, v2}, Lcom/android/launcher3/allapps/AllAppsTransitionController;->updateLightStatusBar(F)V
3. Delete that entire line of code.
SAVE THE FILE
To make the status bar and navbar icons stay white when in the app drawer while using the "light theme" - ON THE ANDROID P DP1 LAUNCHER:
1. Go to \smali\com\android\launcher3\allapps\AllAppsTransitionController.smali
2. Delete line 528 and line 540.
SAVE THE FILE
To remove the text-shadow that got added to the deep shortcuts icon text:
1. Go to /res/values/styles.xml.
2. Add the code below as an entirely new style entry in the styles.xml. It doesn't really matter where it goes. Just make sure that you don't accidentally put in in the middle of another style.
Code:
<style name="DeepShortcutIcon">
<item name="android:textColor">#ff333333</item>
<item name="android:ellipsize">marquee</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:singleLine">true</item>
<item name="android:fontFamily">sans-serif-condensed</item>
</style>
SAVE THE FILE
3. Go to /res/layout/deep_shortcut.xml
4. Find this line:
Code:
<com.android.launcher3.shortcuts.DeepShortcutTextView android:textSize="14.0sp" android:textColor="?android:textColorPrimary" android:gravity="start|center" android:id="@id/bubble_text" android:background="?android:selectableItemBackground" android:drawablePadding="@dimen/deep_shortcut_drawable_padding" android:drawableEnd="@drawable/deep_shortcuts_drag_handle" android:fontFamily="sans-serif" android:textAlignment="viewStart" android:paddingStart="@dimen/deep_shortcuts_text_padding_start" android:paddingEnd="@dimen/popup_padding_end" launcher:layoutHorizontal="true" launcher:iconSizeOverride="@dimen/deep_shortcut_icon_size" launcher:iconDisplay="shortcut_popup" style= [user=262514]@style[/user]/BaseIcon" />
5. At the very end of that line of code, change the "style" value from @style/BaseIcon to @style/DeepShortcutIcon
6. Go to /res/layout/system_shortcut.xml
7. Find this line:
Code:
<com.android.launcher3.BubbleTextView android:textSize="14.0sp" android:textColor="?android:textColorPrimary" android:gravity="start|center" android:id="@id/bubble_text" android:background="?android:selectableItemBackground" android:focusable="false" android:fontFamily="sans-serif" android:textAlignment="viewStart" android:paddingStart="@dimen/deep_shortcuts_text_padding_start" android:paddingEnd="@dimen/popup_padding_end" launcher:layoutHorizontal="true" launcher:iconDisplay="shortcut_popup" style= [user=262514]@style[/user]/DeepShortcutIcon"
8. At the very end of that line of code, change the "style" value from @style/BaseIcon to @style/DeepShortcutIcon
SAVE THE FILE
To change the border-radius (the "roundess of the corners") of the home screen folders:
1. Go to /res/drawable/round_rect_primary.xml
2. Find this line:
Code:
<corners android:radius="2.0dip" />
3. Change that value to whatever you want. The higher the number, the more rounded the corners. 0.0dip would be not rounded at all.
SAVE THE FILE
Recovering from a mistake
Flash the stock Pixel 2 Launcher zip using TWRP.
Just tried on 8.0 (Nov 5 Security Patch), does not work. Threw an error message along the lines of "Display Manager has failed" over and over. Thankfully I could pull the notification shade and ask the assistant to get my back to my file manager to switch the app back. In other news, it doesn't look like a reboot is necessary for this to take effect.
gettingerr said:
Just tried on 8.0 (Nov 5 Security Patch), does not work. Threw an error message along the lines of "Display Manager has failed" over and over. Thankfully I could pull the notification shade and ask the assistant to get my back to my file manager to switch the app back. In other news, it doesn't look like a reboot is necessary for this to take effect.
Click to expand...
Click to collapse
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Sent from my Pixel 2 XL using XDA Labs
sharkie405 said:
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Click to expand...
Click to collapse
Switched over to Nova this morning but I'm sure others would still like the mods. Here's the November 8.0 apk
Sir, could you port it to Nougat (7.1.2), with the ability to hide apps icon?
Works on 7.1.2 DarkRom on my Redmi Note 4, thanks a lot !
Thanks for this. Works on my galaxy tab 3 7.0 running on rr remix 5.8.4 , my only issue is I don't have that google search bar at the top of the drawer
Works on Mediatek too!
Android One (7.0) from General Mobile 6 crossported to DOOGEE Y6.
Thanks.
sharkie405 said:
If you want me to make these mods on your 8.0 APK, I can do that. post up your APK, and I'll do that this evening.
Sent from my Pixel 2 XL using XDA Labs
Click to expand...
Click to collapse
I'll give it a shot on my Pixel 2 whenever the 8.0 mods are available. Thank you so much for this... I love the simple stock launcher but cannot handle that annoying little arrow.
Ra6idr0y said:
I'll give it a shot on my Pixel 2 whenever the 8.0 mods are available. Thank you so much for this... I love the simple stock launcher but cannot handle that annoying little arrow.
Click to expand...
Click to collapse
I didn't bother with it last night since the person who requested said they moved on to Nova. But I'll do one with that 8.0 apk this evening for sure.
It's odd, however, that someone said it didn't work on 8.0, but two others have said it works on 7.1.2.
sharkie405 said:
I didn't bother with it last night since the person who requested said they moved on to Nova. But I'll do one with that 8.0 apk this evening for sure.
It's odd, however, that someone said it didn't work on 8.0, but two others have said it works on 7.1.2.
Click to expand...
Click to collapse
I'm impatient so gave this a shot on my Pixel 2 running 8.0 SEP security update... Works! I had Nova set as default home while moving/backing up the the files and also, I set the permissions to match the existing launcher apk before setting it as my new default. Only thing I noticed is the nav bar in the app drawer has an additional layer of semitrans black over it... probably normal or new from google with the update; don't remember it from before (would love to get rid of that too :angel.
Ra6idr0y said:
I'm impatient so gave this a shot on my Pixel 2 running 8.0 SEP security update... Works! I had Nova set as default home while moving/backing up the the files and also, I set the permissions to match the existing launcher apk before setting it as my new default. Only thing I noticed is the nav bar in the app drawer has an additional layer of semitrans black over it... probably normal or new from google with the update; don't remember it from before (would love to get rid of that too :angel.
Click to expand...
Click to collapse
The layer on the navbar would be a framework-res mod. Unfortunately, Apktool hasn't worked to mod the Pixel framework-res.apk since Oreo.
Sent from my Pixel 2 XL using XDA Labs
Thanks Dev, is working fine on my device Redmi 3 rrRemix 7.1.2
like this
sharkie405 said:
The layer on the navbar would be a framework-res mod. Unfortunately, Apktool hasn't worked to mod the Pixel framework-res.apk since Oreo.
Click to expand...
Click to collapse
Thanks, I was wondering what you were using to mod. Good to know apktool is still the default. I used it all the time back in the day with my Droid Incredible for theming.
What are your thoughts on the home screen widget? Hide/disable?
Ra6idr0y said:
What are your thoughts on the home screen widget? Hide/disable?
Click to expand...
Click to collapse
I've spent the last hour or so tinkering with it. I can "hide" it, as in hide the text, but the space is still taken up now by empty, unusable space. I assume "actually" removing it would require a smali edit, which I honestly don't feel like messing with. It doesn't seem to be possible with just /res files.
verzero said:
Thanks Dev, is working fine on my device Redmi 3 rrRemix 7.1.2
like this
Click to expand...
Click to collapse
How to get Weather info beside date info bruh?
sir... can you add option to hide google search icon on botton please....???
---------- Post added at 11:53 AM ---------- Previous post was at 11:44 AM ----------
also..after editing build.prop (to add qemu.hw.mainkeys=1)in my nexus 6p running latest november oreo update,some issues i faced are:
> after booting finished the screen got black and after long power button press,pop shows for restart,shutdown that what i only able to see and do.
>then it automatically shows "factory data resetting" .
>this process continue each time when i restart the phone.
Capt_N3m0 said:
How to get Weather info beside date info bruh?
Click to expand...
Click to collapse
Are u don't get weather info? I don't know how, this like normal for pixel launcher
sharkie405 said:
I am not responsible for your device.
You must be rooted.
Click to expand...
Click to collapse
Question, do you think you might be able to modify the launcher so that it doesn't have that horrible foggy white fade on the bottom third of the homescreen? I hate how much that washes out the colors of my wallpapers. If so could you do one that only has that mod and the mod to make the colored G in the search? Thanks in advance either way.

Categories

Resources