*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.
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
-
130.6 KB Views: 1,577
-
114.2 KB Views: 1,565