farmerbb / Taskbar

PC-style productivity for Android
Apache License 2.0
839 stars 132 forks source link

feature request: Custom window titles #170

Open gaussandhisgun opened 3 years ago

gaussandhisgun commented 3 years ago

I'd like to see an option to turn on Taskbar's custom window titles, like in Linux (screenshot: Снимок экрана_2021-01-12_23-00-25 ) Some websites say that it is possible to access and customize this view (title bar) by getting the DecorView using Window.getDecorView(), casting it as a ViewGroup and then accessing its child views. This may even have something to do with Xposed/EdXposed if it is not possible to set DecorViews of other windows. https://developer.android.com/reference/android/view/Window#getDecorView()

utzcoz commented 3 years ago

As you say, looks like there is not a official supported method to set custom window title. The method to use DecorView to find the title view, and change it value is workable, and you can do it with public method without needing Xposed/EdXposed. It uses AOSP method, and not Taskbar stuff, so you can do it directly from you app.