Office Hours — Today, September 29

Tuesday, September 23

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
how can I help you today?
Gabriele
hi Mark :)
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.
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, ...)
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
hence, anything you would use for a ListView should work for a ListView in a navigation drawer
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
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
"Plain Old Java Object"
9:05 AM
Gabriele
ah, yes, exactly
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
no different than putting a symbol before some text in any ListView
Gabriele
ok, thank you
last question
how is the notification list called, like the one there is on google plus?
Mark M.
well, I do not use Google+
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
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
"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
"Add drawers as child views after the main content view and set the layout_gravity appropriately."
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
private*
Mark M.
apparently the Google+ authors think so
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)
with red color, so users tap on it
and I thought I can do the same thing for private messages, on my app
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
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
and I haven't given much thought to writing live chat clients like this
9:15 AM
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
the navigation drawer is for navigating to different major areas within your app
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
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
so that the user has a separate location to do globally actions
else I will have to create a new fragment in the viewpager, for the server/network
but to me this seems more complicate, to the user
anyway I will think about it
oh, a last question (didn't remember of this), how is the icon that I find everywhere to send messages?
that "triangle"
named*
9:20 AM
Mark M.
um
do you mean the one in your screenshot to the right of the EditText?
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?
I always miss it
Mark M.
Gabriele
transcription*
thank you
Gabriele
has left the room
10:00 AM
Mark M.
turned off guest access

Tuesday, September 23

 

Office Hours

People in this transcript

  • Gabriele
  • Mark Murphy