Android 4.4 introduced more subtle use of colour throughout the OS and provided
new guidance on using colour
[http://developer.android.com/design/style/branding.html#color] in your
applications to provide better branding (see this episode
of ADiA for more discussion). This means that the onus is now on you as a
designer/developer to inject some colour into your app to make it standOver the past few months I've been receiving a ton of emails, tweets, G+
mentions and GitHub issues in connection with my open source libraries. So I
thought I would set out what my plan is for them in the future, and the order in
which I'll be tackling the backlog.
The library which is taking up the majority of my personal dev time at the
moment before it hits v1.0. I've done this library a bit differently that my
previous ones as I've developed it in the open, whereas Over the past few weeks I've been updating ActionBar-PullToRefresh
[http://github.com/chrisbanes/ActionBar-PullToRefresh] for the release of v0.7,
but have been a bit blocked on publishing the library as an Android Archive
(aar) to Maven Central [http://search.maven.org/]. It was the number one
issue/request that I received, and while I had a working local Gradle build I
could not find an easy way to publish the results.
There a few solutions out there but nothing really definitive. The main
sSo this is my first blog post on ActionBar-PullToRefresh. I've been mainly
talking about it on Google+ up until now as it simply was not ready for
production use. Well today I tagged and push v0.4 of the project, which adds the
main missing feature: automatically styling based on your Action Bar style.
First of all here's a video of how it works:
So here's a non-exhaustive list of it's features:
* By default mirrors the Gmail implementation: grow from center progress bar.
* ListVieOne of things that I keep finding myself doing is creating copyright profiles in
IntelliJ for my open source projects. If I move to a new machine, I have to do
it all over again. So I thought I’d write a quick blog post, more for my
reference than anything but hopefully you’ll find it helpful too.
The first thing you need to do is create a ‘Scope’. This is basically a filter
of files within your project which the copyright profile should update. For
Android projects I the following filterAfter a month of not posting anything on here due to being busy, I’ve finally
found a bit of time to write a new Snippet post. This post is all about
[https://developer.android.com/reference/android/widget/Checkable.html], and how
to properly implement the interface so that your views display as you expect
Checkable is an interface which can be implemented when your View needs to
change state based on a boolean switch. The framework contains a few views whiLast week Joaquim Verges [https://plus.google.com/107942105369460253496] asked
me a question about ListView. I’ve finally got around to writing up this
solution and post.
To paraphrase Joaquim, the problem is:
> I have a ListView populated from a CursorLoader. When I swap to a cursor with
new items on top, I use setSelectionFromTop()
int)] to keep the ListView at the same visible positionAndroid-PullToRefresh was started about 18 months ago, as I needed it for a
project (Friendcaster). Since then I’ve kept maintaining the project, pushing it
forward and adding new features.
Well today I’m stopping development. There are two reasons for this, the first
is that it is feature complete. The second reason is that the volume of ‘issues’
I get is taking up too much of my time.
At the end of the day, it’s open source. If you want something added or fixed,
you have the source to do so.This snippet is taken from some of the code I’ve recently released in photup
[http://www.senab.co.uk/2013/01/19/photup-is-now-open-source/], and shows you
how to make an Action Bar item more noticeable, allowing you to lead the user
onto the correct path.
You can see what I mean here:
So why did I add this in photup? Well, one of the problems that I had with the
selection screen was that there were many many clickable items on it:
* Each item in the Grid is clickable twice, one for selection