zhaog / dashclock

Automatically exported from code.google.com/p/dashclock
Apache License 2.0
0 stars 0 forks source link

Allow third-party extension create it's own RemoteViews to display #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes a single line with icon, title and body, is not enough for an 
extension to display data.
By providing extensions the ability to return a complete RemoteViews object 
inside the ExtensionData object, the extension will be able to provide much 
richer interface and information to the user.
The RemoteViews object can be simply inserted to the list item by using method 
- AddView method (don't forget to call RemoveAllViews first)

Anyway, thanks for the great widget, it's lovely.

Original issue reported on code.google.com by ad...@roymam.com on 13 Feb 2013 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by roman.nurik on 13 Feb 2013 at 7:42

GoogleCodeExporter commented 9 years ago
The way I see it - if it doesn't fit in a two-liner and monochrome icon, than 
it doesn't fit as a DashClock extension.

The whole point is to be simple, beautiful and visually consistent across the 
board.

Original comment by olb...@gmail.com on 14 Feb 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Hi  and thanks for your reply.
I'm developing a widget for lockscreen that displays notifications.
forum.xda-developers.com/showthread.php?t=2100219
Many of my user requested to integrate it with DashClock so they can enjoy both 
apps on a single lock screen.
Title and Summary is not enough to show information for all of the pending 
notifications.
I can design an extension that looks clean and fits DashClock design but I'll 
need more than two lines, perhaps even listview with many items.
The alternative is to allow third-party extensions to add more than one item, 
so I can add notifications.
Please have a look at my app and tell me how do you think it's best to 
integrate.
I can help coding, of course.
Thanks.

Original comment by leo...@gmail.com on 15 Feb 2013 at 6:27

GoogleCodeExporter commented 9 years ago
You can have more than one line be appending the \n character to your 
title/body strings.
This is the best you can do so at the moment, and it might be enough.

A good compromise will be the ability to set a Spannable object instead of a 
simple string where we'll be able to set custom styles to parts of the 
displayed string (bold/italics/underline).

Original comment by olb...@gmail.com on 15 Feb 2013 at 2:39

GoogleCodeExporter commented 9 years ago
A mockup for an extension to use RemoteViews by Phil Oakley is here to show how 
this would be useful - http://i.imgur.com/Mm089K4.png

Original comment by headbang...@gmail.com on 16 Feb 2013 at 4:30