No account drawer #40
Comments
Can you find me an example image or an app for this type of drawer? |
I know I saw some examples in past, but I went thru so much resources lately, I cannot remember where. I asked for it in G+ Android App Design group. Another approach to this common for some apps is just to leave out "accounts section" entirely and start with normal sections. |
mmm and simply set the background image instead to remove all the account view? |
for now I added a method that allows to remove all the account data and set a simple background. |
@neokree There should be the possibility to hide the accounts section completly. So the only thing to do is to remove the views like in replaceDrawerHeader() and additionally remove the ImageView 'usercover'. Call the method something like 'noAccounts()' and you have done it. 😃 |
ehm, yes but no. @randombyte-developer you forgot the status bar on lollipop devices, the drawer is between the status bar and the status bar background, so when you remove all user section it should be a little space for status bar, but I actually don't know if I have to color it with the background status bar or simple add some padding from the top |
Sorry, I didn't get your point. Edit: Ah, okay... Try to use padding. |
I have uploaded three new screenshot on the EXAMPLE.md file. Please see if is a possible solution. |
On my Nexus 6, the example app and my app behave wrong. When I select no header the drawer is so tiny. Because I have to release my app soon, I set the custom header to
That works not perfectly but is acceptable. Edit: No, not acceptable. With that custom drawer, the bottomSection doesn't show the text. Only the icon. And the section is not clickable in the whole width, only there, where the icon is. |
Actually it is an issue only on nexus 6, I suppose for the hight resolution of the screen. |
If there is no account section at all, sections should not go behind status bar, because it will look wrong. For apps that use no status bar coloring / behind the status bar theme on KitKat, there should be no padding and items should start from the top (as the Toolbar starts as well). |
For the nexus 6 and hight resolutions devices problem, I found a solution. |
We've got "an official" statement to this by Ian Lake (Android Dev team at Google). Check this @neokree: |
Any news on this? Another thing I'm seeing on my N6 is this: http://imgur.com/zHOuFz8, when setting the images as Bitmaps. It basically looks like the width just isn't being calculated right. Could we maybe get a way to manually set the width? |
@drinfernoo what version are you using? Because in 1.2.9 there was a problem for hight resolution and small screen devices, but in 1.3 alpha version there is fixed. |
Bug on Nexus 6 fixed! Drawer expands normally. |
There are apps that don't need a user to be logged in. In such case, in "account area" there is just a text of a size "abc_text_size_headline_material" - usually by def white, with some background, usually only a color (accent in some apps). Nothing else, pretty simple.
The text was updated successfully, but these errors were encountered: