no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | android_add_custom_navbars [16.02.2020 10:20] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Android add custom navbars ====== | ||
+ | there isn't really an official method to add other nav bars to android besides the one that comes with android at the bottom of the screen. however, there are two features of mondern androids which can be combined to create the same end result: | ||
+ | |||
+ | ===== costomizable window manager offsets ===== | ||
+ | by changing the offsets of the window manager, we can create unused space on our screen which no app should use (or miss) | ||
+ | |||
+ | offsets can be changed by using '' | ||
+ | adb shell wm overscan 200,0,0,0 | ||
+ | the four numbers are offsets on hte LEFT, | ||
+ | |||
+ | if you screwed up, simply run | ||
+ | adb shell wm overscan reset | ||
+ | |||
+ | ===== Draw over other apps ===== | ||
+ | android has a permission called "draw over other apps" which can also be used to draw over the navbar or the other offset areas of the screen. so now using this feature in combination with the above set offset, we can create something like a nav bar which is placed over the offset area of the screen and therefore won't overlap any active apps. | ||
+ | |||
+ | if you want to run an entire app or widget in the offset are, there is an app called [[https:// | ||