Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Feb 26 08:35
    @freakboy3742 banned @HBanado_twitter
Russell Keith-Magee
@freakboy3742
To look at the problem another way:
if you were going to build a chat app in almost any GUI toolkit, I guarantee you the way you'd build it isn't to have a scroll cotnainer filled with individual widgets.
Even if that scroll container was annotated with extra API calls to add/remove etc.
There's an internal optimization layer in "detailed-list-esque" widgets that is consistent on almost every platform.
ceo-of-programming
@ceo-of-programming
Then Gtk.ListBox has internal optimizations for when all rows are the same widget? Is that correct?
Russell Keith-Magee
@freakboy3742
I believe so, yes.
But even if they don't look the same, they can be the same widget. They're just variations of the same widget.
ceo-of-programming
@ceo-of-programming
Makes sense.
Then I would proceed with the change of Gtk to ListBox and implement the Windows detailedlist.
How would I go about expanding the detailedlist language to support arbitrary (yet uniform) widgets?
Russell Keith-Magee
@freakboy3742
Well step 1 is to make an API proposal :-)
My suggestion would be to get the "simple" version working first - i.e., the current constant "icon plus primary text plus secondary text" layout.
because the handling of 'customized' layouts will definitely come as an extension of how "simple" layouts are implemented.
ceo-of-programming
@ceo-of-programming
ok, thanks
Asheesh Laroia
@paulproteus
I spent some time today looking into the persistent Android layout bug where the app "action bar" prevents Toga from using the full space it has. I don't have a full solution yet, but I have at least characterized the problem.
I also looked into DetailedList some more. I have been playing with the Android Material UI library, and the "Lists" in it are rather lacking. Plus, apparently I now need to better-understand an Android Fragment vs. an Android Activity.
More updates probably within a week, maybe sooner; that's my micro status update.
Russell Keith-Magee
@freakboy3742
:thumbsup:
Sounds like progress, if not yet productive
Asheesh Laroia
@paulproteus
Yeah :D
I emailed an Android-y friend to get more help & advice on the lists thing.
One question I have is... can/should we use a list of Android "Cards" in DetailedList?
The Cards within the Material UI library are quite full-featured, including a swipe to dismiss behavior that feels very native to me.
Russell Keith-Magee
@freakboy3742
I'm not overly familiar with Material UI to comment on what a "Card" is... got a link to any details?
Russell Keith-Magee
@freakboy3742
403 error for me...
Asheesh Laroia
@paulproteus
Oh hmm
Russell Keith-Magee
@freakboy3742
Hrm... I can see how you might be able to cram DetailedList into that hole... but it does feel a bit off.
Russell Keith-Magee
@freakboy3742
I guess my question would be: if you wanted to write a chat app for Android: What would you use?
Great question. I can bring that to my Android-y friend. Is this the list of chats, or is it each chat itself?
Russell Keith-Magee
@freakboy3742
So - "message" would be a "card" in that demo's context.
Maybe "Twitter clone" would be a better analog
each message has an icon of the author; the authors name; and the text of the actual message.
There might also be actions, additional media etc - but for the short term, just icon, name and message will suffice.
Asheesh Laroia
@paulproteus
Twitter clone, right
Russell Keith-Magee
@freakboy3742
"Chat client" being "twitter clone but without the expectation that every message is self contained.
(i.e., 3 messages in a row from the same person don't get displayed with 3 icons)
Asheesh Laroia
@paulproteus
Would you show the message in the big text, in this case?
Russell Keith-Magee
@freakboy3742
In the case of a card? I would have thought the "title" was the author
The Beeliza demo on macOS is an example of this in action
Asheesh Laroia
@paulproteus
I tested Beeliza on iOS, yeah; hopefully similar.
I have no real answers to offer yet except to say these are great questions.
It's not clear to me that a Material UI "List" is exactly what you're looking for either though with DetailedList.
Well, for the Twitter clone case, I guess it is.
Russell Keith-Magee
@freakboy3742
Entirely possible. <Insert Android expertise here>
:-)
Asheesh Laroia
@paulproteus
I'll focus on the "Twitter clone stream of messages from various people" use case with my Android friend!
ceo-of-programming
@ceo-of-programming
@freakboy3742
In the course of re-implementing DetailedList with Gtk.ListBox the need for using ScrolledWindow and Box arose.
Is it better to use toga_gtk.box and toga_gtk.scrollcontainer or to directly call gtk.box and gtk.scrolledwindow?
By using toga_gtk widgets I can use the style pack engine, on the other hand if someone changes the native widgets of box and scrollcontainer things could break.