New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Multiple widgets #988
Conversation
Make sure to remove all widgets when you switch away from this PR or else restoreWidgets will crash |
e365dcc
to
a20aa1f
Compare
@TBog I see this PR is WIP, but just in case, are you looking for testers already? |
Yes, testing would be good. LE: I know some people have problems with widgets not updating. Would it be ok to update all widgets when onStart is called? |
Regarding your question, I don't see any issue refreshing in Regarding the feature itself, some questions!
I like the multi-widget approach and the full-customizability, but I'm curious how someone less technical will understand concepts such as "gravity". |
(update: on my device, changing any settings by anything will make the widget disappear) |
I'm sorry that you have encountered problems.
By default the widgets should be positioned on the middle screen at the top, centered horizontally. When you said "infer the top position automatically" what did you expect to see? Right now I seem to have problems with the settings if more than 1 widget is set, not sure what I did because when I first tested it seemed to work fine. |
If one sets the position of a widget to left or right, than please also enable "Scroll wallpaper" to be able to see the widget by dragging on the screen. |
if the PR is fine, can anyone please share the apk for testing? Thanks in
advance!
|
@ildar you can try https://1855-6047468-gh.circle-artifacts.com/0/release-apk/app-release-unsigned.apk but you'll lose any settings you have in KISS :( |
it's not installable. Need apk with debug keys.
|
ok, found the installable apk:
https://1855-6047468-gh.circle-artifacts.com/0/debug-apk/app-debug.apk
and, yes, it is crashy :(
|
I generally like the idea behind the implementation. It just needs
layouting changed/fixed.
JIMHO Overlapping widgets mainly look sloppy and should be avoided, but
sometimes may be useful for semi-opaque widgets :)
|
Please do tell what you did that crashed it. I don't use a grid to position the Widgets because I wanted to have full control of the position. This is why if you just add two widgets they would be overlapping. I suppose I can make the first align to TOP and the second to BOTTOM and this would delay the problem to the 3rd widget added. How would you like to have the layouting changed/fixed? |
When I tap on Position: Middle, it constantly crashes with:
Mon, 23 Jul 2018 12:57:28 +0600: E/AndroidRuntime(22733): FATAL EXCEPTION: main
Mon, 23 Jul 2018 12:57:28 +0600: E/AndroidRuntime(22733): Process: fr.neamar.kiss, PID: 22733
Mon, 23 Jul 2018 12:57:28 +0600: E/AndroidRuntime(22733): android.view.WindowManager$BadTokenException: Unable to add window -- token ***@***.*** is not valid; is your activity running?
Mon, 23 Jul 2018 12:57:28 +0600: E/AndroidRuntime(22733): at android.view.ViewRootImpl.setView(ViewRootImpl.java:532)
Mon, 23 Jul 2018 12:57:28 +0600: E/AndroidRuntime(22733): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:259)
Thanks a lot for the feature!!!!
I like it very much
|
How would you like to have the *layouting changed/fixed*?
I'd suggest simple layouts as default and per-widget position+size as
advanced setup.
"simple layouts" like "vertical grid".
|
I have some widgets that do not update sometimes. I'm 90% sure it's not because of my changes but I don't want to be blamed ;) |
Don't blame yourself, it's #744
|
@TBog , plz merge (or rebase) with latest fixes from master.
|
538bb19
to
189f801
Compare
Please merge with `master`. I know, it's not fun. But I use it and want to
see latest changes. Please?
Thanks in advance!
|
optimize layout
added position option added top offset option
* removed max widget count
I did a rebase, did not test it but I had no conflicts and it compiles. |
works good, thanks a lot!
|
Thanks for your contribution, @TBog! I like this launcher a lot and think it's really missing multiple widgets feature. In my usecase it would be TickTick and Habbit to track todos and habbits right on home screen. But don't you thinks features declared in PR description are a bit overkill keeping in mind project goals? IMHO two menu buttons ("add [fullscreen] widget" and "remove current witget") and ability to swipe between added widgets horizontally would be enough. I've tried your current build and widget related features feels pretty complicated. What do you think about it, @Neamar? |
And also it would be great to see this project on Bountysourse to allow contributors to get paid for their work. |
I use intersecting widgets and happy with it. Guess there have to be such
an ability for advanced users. Though indeed it ui needs reworking
|
Hey @TBog, This PR has been blocked for some time now. I've been considering implementing the feature on my side (something more advanced than what we have right now, but not as advanced as what you have here). Would you be OK for me to close this and start working on a new implementation? |
I tired to update this to the current master branch and it compiles, but I keep getting the same error whenever I click any of the spinners in the widget customization panel:
It seems that the context for the dropdowns is not correct. I tried to use different contexts but the exception remains. Does anyone have any ideas on that? |
On Wed, Feb 19, 2020 at 5:47 PM Matthieu Bacconnier wrote:
I've been considering implementing the feature on my side (something more
advanced than what we have right now, but not as advanced as what you have
here).
I just hope your implementation will allow overlapping widgets. Otherwise
it's a lot less useful. Thanks! 👍
|
@Neamar Please do. I may be able to add more customization to it after you finish. Right now what we need is a better widget management. |
My initial implementation is unlikely to deal with overlapping widget. I'm closing this here, happy to reopen if you see I'm not making any progress or you have more time! |
@Neamar I really like you taking on this issue! But maybe consider taking this as a base to build on, since most of the work is already done and making this here more user-friendly might be easier than to make a linear layout more configurable. You could emulate the linear layout's behaviour with this rather easily. For the simple mode the user would only be allowed to change the order of the widgets. This would be done in the background by setting the height and top offset values of the widgets. The advanced mode could function similarly as it does now, only maybe with slightly modified parameter names so that it is easier to understand. I would change the label "Position" to "Page", drop vertical gravity (the same effect can be gained from using offset top) and rename horizontal gravity to "Position". I like the current implementation very much, except that it crashes when touching any of the dropdown menues. |
fix #752
WIP, do not merge
I need some feedback and help ;)