GUI like Google Keep
Google Keep has a very nice UI.
First of all, I'm not a designer, but tonight I enjoyed trying to clone it.
Do not take this code too seriously, it is just an example.
We start with ActionBar. Window and ActionBar have same background color.
With Android Action Bar Style Generator (by Jeff Gilfelt) we choose a background and generate our zip code. We take only the part that interests us and integrate it.
We choose a FrameLayout and we adjust margins.
In this case I choose a xml file with a layer-list.
In landscape mode, we change something in layout:
To color a bit the screen we put some shape below.
I don't know what Google used for it.
I think it is a StaggeredGridView or a variant of it, likely.
Someone spoke about it on G+ a few months ago. You can find an experimental in frameworks/ex/widgets/ folder of AOSP.
I honestly do tests before speak about it.
.
You can get code from GitHub:
First of all, I'm not a designer, but tonight I enjoyed trying to clone it.
Do not take this code too seriously, it is just an example.
We start with ActionBar. Window and ActionBar have same background color.
With Android Action Bar Style Generator (by Jeff Gilfelt) we choose a background and generate our zip code. We take only the part that interests us and integrate it.
For our Activity we choose a RelativeLayout, and we put it under ActionBar.
Then we try to draw first box with title and icons.
We choose a FrameLayout and we adjust margins.
We want a white rectangle with a light bottom shadow. We can do it with a 9 patch image.
In this case I choose a xml file with a layer-list.
Then we fill the box with title, a divider and 4 images.
For the buttons background we use:.......
We should add something like this:
but I should create images...
In landscape mode, we change something in layout:
....... and we obtain:
To color a bit the screen we put some shape below.
I don't know what Google used for it.
I think it is a StaggeredGridView or a variant of it, likely.
Someone spoke about it on G+ a few months ago. You can find an experimental in frameworks/ex/widgets/ folder of AOSP.
I honestly do tests before speak about it.
.
You can get code from GitHub:
Nice tutorial.
ReplyDeleteVery rare to find a tutorial about design ...
Thank you very much. Thinking of implementing it in one of my apps. Will share it if it turns out good. :)
ReplyDeleteIt's StaggeredGridView. ;-)
ReplyDeleteGreat tutorial
ReplyDeleteWould it be better to use @null instead of android:windowActionBarOverlay? That way you don't need to adjust the top margin of Box_outer to take the action bar into account.
I like this tutorial, It is interesting.
ReplyDeleteIf you have time give a look at www.survivingwithandroid.com