-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
#1556 - Toolbar, new Drawer and new Account Manager #1559
Conversation
Screenshot of the initial implementation showing the checked state. At the moment the drawer has the standard material width which is quite huge. We can make that any size though 😁 So looping in @jancborchardt for design, @davivel for possible discussions about integration at some point and @tobiasKaminsky for account switching (I'll ping you again as soon as I have integrated the switcher implementation UI-wise). |
small update, soon to be committed showing the account switch in the drawer header which is now 140dp fixed and will be 140dp and 164dp for sw360dp, see also https://medium.com/android-news/navigation-drawer-styling-under-material-design-f0767882e692#.76h6eeqi9 |
@AndyScherzinger account switching on the branch #1537 should be stable enough to merge it into this branch. |
@tobiasKaminsky thanks for the info! 👍 I'll ping you when I'll have the UI for it up and running and will need your help merging since I really don't know my way around git that much. |
You can also ping me and I do the merge. |
Sounds perfect, great collaboration as always! 🎉 |
Screenshots of the actual progress.
|
Code reviews should probably wait until @jancborchardt provides feedback on the visuals :) Feel free you check it anyways, any early feedback is highly welcome. Just FYI I introduced two activity parent implementations for the toolbar handling and for the drawer handling. The later being a child of the toolbar activity. I will also implement a manage accounts activity which lists all account where the user will then be able to change the password and also to remove the account. This will basically work the way the Google apps handle account management and thus then remove the account management from the settings activity. I can also do this in a later PR which then work have to be stacked on this one, so if it is oka with you I would prefer to do it in this PR even though it will make this PR quite large (like most of my PRs 😉) |
...enough for tonight... I now also implemented the account switching itself which has mostly been a move of all account related methods from the file activity to the drawer activity, plus some protected getter methods and binding the account clicks to the account switch. |
DONE
OPEN
|
Cool stuff! |
I guess so, but I think we should keep the branch until this PR is done just to make sure. Sorry that I didn't incorporate any changes from the other PR but down the road it seems easier/faster to just keep going on this branch. |
No problem 👍 |
DONE
OPEN
|
@jancborchardt any feedback on the visuals? |
You can remove all account related lines from Preferences as they are still in master. |
🎉 The implementation is basically done and is ready for test, two probable issue still open, see below 🎉 DONE
OPEN
|
…navigation drawer
I will rebase on master to get last translations (and to earn the last Github green check) |
And please, notice that now this depends also on owncloud/android-library#138 |
The avatar changes will need extra checks. Working on it. |
…ctive server fetches, refactoring and clean-up
I updated the reference to the OC library after merging it's matching PR. Thanks a lot, @AndyScherzinger . This contribution is pure LOVE. |
This is the PR for #1556 - see todos and comments
At the moment my implementation is stable and available in the beta.
At the moment I also added the uploads menu item here as a dummy since this PR will be merged after the reliable uploads has been released so you all can already see how it will look like.
Material Design spec for side nav drawer:
http://www.google.com/design/spec/layout/structure.html#structure-side-nav
What has been done already:
RELATED BUGS:
POSSIBLE IMPROVEMENTS: