Sep 29 | 8:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Gabriele | has entered the room |
Mark M. |
hello, Gabriele
|
Mark M. |
how can I help you today?
|
Gabriele |
hi Mark :)
|
Sep 29 | 9:00 AM |
Gabriele |
always working on my irc client app, I have a small list of functions (eg. change user nickname) on the navigation drawer and I think it would be better to categorize them by putting a section separator, or a sliding section.
|
Gabriele |
I have to do a similar thing on the user list in the channel, by ordering these users (before the user which moderate the channel, put a symbol before them, ...)
|
Gabriele |
as I think these things are similar I'm asking to you if you know a library or something, so that I can customize the navigation drawer and the user list
|
Mark M. |
the navigation drawer is usually just a ListView
|
Mark M. |
hence, anything you would use for a ListView should work for a ListView in a navigation drawer
|
Mark M. | |
Gabriele |
so you confirm I can use the same library tu customize it
|
Mark M. | |
Gabriele |
oh nice, there are a lot
|
Mark M. |
plus things like my CWAC-Merge library: https://github.com/commonsguy/cwac-merge
|
Gabriele |
(in particular, I don't know how to order the users' nickname in the list, should I wrote my own adapter and overwrite something?)
|
Mark M. |
sort the data before you put it in the adapter
|
Mark M. |
I assume that these nicknames are part of some POJO data model in an array that you are wrapping in an ArrayAdapter
|
Gabriele |
what pojo is?
|
Mark M. |
if so, sort the array by nickname before wrapping it in the ArrayAdapter
|
Mark M. |
"Plain Old Java Object"
|
Sep 29 | 9:05 AM |
Gabriele |
ah, yes, exactly
|
Mark M. | |
Mark M. |
as opposed to a Cursor, for example
|
Gabriele |
ok, so I can sort them easily, but then how can I add a symbol before a user, if for example he is a channel moderator?
|
Mark M. |
that would be in your ArrayAdapter implementation, for formatting the rows
|
Mark M. |
no different than putting a symbol before some text in any ListView
|
Gabriele |
ok, thank you
|
Gabriele |
last question
|
Gabriele |
how is the notification list called, like the one there is on google plus?
|
Mark M. |
well, I do not use Google+
|
Mark M. |
particularly on Android
|
Gabriele |
oh! :P
|
Mark M. |
so I do not know what the "notification list" is
|
Gabriele |
let me see if I can find it
|
Gabriele |
it is like a navigation drawer, but on the right
|
Mark M. |
that is probably part of the same DrawerLayout that they use for the left
|
Mark M. |
"As per the Android Design guide, any drawers positioned to the left/start should always contain content for navigating around the application, whereas any drawers positioned to the right/end should always contain actions to take on the current content. This preserves the same navigation left, actions right structure present in the Action Bar and elsewhere."
|
Gabriele |
can I have two navigation drawer? one to the left and one to the right?
|
Mark M. |
yes
|
Mark M. | |
Mark M. |
"Add drawers as child views after the main content view and set the layout_gravity appropriately."
|
Sep 29 | 9:10 AM |
Gabriele |
can notifications be consider actions on the current content?
|
Mark M. |
::shrug::
|
Gabriele |
e.g. a user receives a privat emessage
|
Gabriele |
private*
|
Mark M. |
apparently the Google+ authors think so
|
Mark M. |
personally, I wouldn't
|
Gabriele |
me neither
|
Mark M. |
in part because users may not realize the drawer on the right exists
|
Gabriele |
on google plus, when a new notification is send, a number on the drawer button appears (eg. 1)
|
Gabriele |
with red color, so users tap on it
|
Gabriele |
and I thought I can do the same thing for private messages, on my app
|
Gabriele |
then tapping the user know Mark sent a message to me, and by tapping on the message, they jump to the "private window"
|
Mark M. |
is what you want technically possible? yes
|
Mark M. |
I do not know enough of the overall GUI design of your app to be able to say whether it is a good model here
|
Mark M. |
and I haven't given much thought to writing live chat clients like this
|
Sep 29 | 9:15 AM |
Gabriele |
it is like this: https://lh4.ggpht.com/UOmDfNqqUW8_dOSfZ_qVapytc...
|
Gabriele |
but on the left I have the navigation drawer with common actions (join a new channel, change the nickname, ...)
|
Mark M. |
well, actions should go in the action bar
|
Mark M. |
the navigation drawer is for navigating to different major areas within your app
|
Mark M. |
so "change the nickname" IMHO does not belong in a navigation drawer
|
Gabriele |
this is true, too
|
Mark M. |
however, a chat client is not the sort of app for which the standard navigation drawer rules are envisioned
|
Gabriele |
I will think about it, but thank you very much as always! :P
|
Gabriele |
eheh
|
Mark M. |
so if you want to deviate from those rules, and you think the user will not get confused, that's your call
|
Gabriele |
from what I think, I'm using the navigation drawer like a... server/network actions drawer
|
Gabriele |
so that the user has a separate location to do globally actions
|
Gabriele |
else I will have to create a new fragment in the viewpager, for the server/network
|
Gabriele |
but to me this seems more complicate, to the user
|
Gabriele |
anyway I will think about it
|
Gabriele |
oh, a last question (didn't remember of this), how is the icon that I find everywhere to send messages?
|
Gabriele |
that "triangle"
|
Gabriele |
named*
|
Sep 29 | 9:20 AM |
Mark M. |
um
|
Mark M. |
do you mean the one in your screenshot to the right of the EditText?
|
Gabriele |
I think it is from android: https://lh4.ggpht.com/8jPipoemhlZ-P7uUpFHaqbZ05...
|
Gabriele |
yes
|
Mark M. |
I have no idea
|
Gabriele |
eheh ok Mark! Thank you very much, as always :)
|
Mark M. |
you are very welcome
|
Gabriele |
I ended up with my questions, have a good day :)
|
Mark M. |
you too!
|
Gabriele |
can you remember me the chat archive url?
|
Gabriele |
I always miss it
|
Mark M. | |
Gabriele |
transcription*
|
Gabriele |
thank you
|
Gabriele | has left the room |
Sep 29 | 10:00 AM |
Mark M. | turned off guest access |