[guide]Add more columns to the oneplus launcher!

stelio_kontos

Senior Member
Aug 15, 2015
59
20
0
Eindhoven
*requires root* tested on OB22

So after seeing the recent XDA post about enabling Google photo back up when charging, I figured I'd do some snooping around in the shared preferences files myself.
I found out you can change the amount of columns in the stock OnePlus launcher (to add more than the standard 3/4/5 columns).
To do this you need to go to:

/data/data/net.oneplus.launcher/shared_prefs/net.oneplus.launcher.prefs.xml

Then change the number in this line (at the bottom of the file) to whatever number you want.

<int name="workspace_columns" value="5" />

I don't recommend adding too many columns, as the icons will start to overlap (see the screenshots below). For medium icon size this will happen with values higher than 7-8, setting the icon size to small will prevent this to a certain extent.

After editing this line you need to force close the launcher for the changes to taken effect.

You will however still have 5 rows. This (probably) can't be changed in this way, due to the rows not being customizable in the launcher. The columns are, which is the reason this line exists.

Below are some screenshots, as you can see the icons are almost touching each other which 8 columns. The 12 columns are more a proof of concept.
 

Attachments

stelio_kontos

Senior Member
Aug 15, 2015
59
20
0
Eindhoven
Hello, this method is not working anymore on latest version. Can you help me what might be the problem? Also what file manager and xml editor did you use? Thanks!
I unfortunately broke my OnePlus, so I can't really help you too much with troubleshooting. Last I tested was on oos pie, so it probably should still work. I used solid explorer to edit the files.

Are you sure you are rooted? There are apps available to manage shared preferences files of all your apps. Maybe you'll have more luck if you try one of those.
 

albannotosska

Senior Member
Mar 5, 2014
228
110
0
Tirana
I unfortunately broke my OnePlus, so I can't really help you too much with troubleshooting. Last I tested was on oos pie, so it probably should still work. I used solid explorer to edit the files.

Are you sure you are rooted? There are apps available to manage shared preferences files of all your apps. Maybe you'll have more luck if you try one of those.
I am sorry for your oneplus. The line is there and I have tried changing it but it doesn't do anything. It only happened with the latest version. I am on Pie. I am rooted with the latest Magisk, tried many explorers and many xml file editor . Anyway thank you for your reply. I will try to search and maybe I can find something.