You can now get the FAB behavior shown in this post as a library. Go to the project on github to see the source, read the gradle instructions or file an issue. Comments are also well-liked on reddit or Google+!
There are already enhancements in place over the code as shown originally:
No more performance penalty when using the behavior
Behavior corrects snackbar handling, so both play well together now
Near future plan is to include proper handling of AppBarLayouts that do not collapse completely.
Picture a list view, with a Floating Action Button (FAB) sitting on it, like this:
The FAB needs to be able to move out of the way, so that all parts of all list items are actually reachable. Also, it is good form in this situation to have the app bar scroll out of the way, to maximise the viewport area dedicated to the list. There’s a well-knownready-madesolution for this; it looks like this
and has two disadvantages:
it does not visually sync up well with the leaving app bar - in contrast to the scrolling AppBarLayout, the animation is not linked to the actual scrolled distance, and to me, the hiding animation is distracting while I, as a user, am focused on scrolling the list
it does not sync up with the leaving app bar by implementation - this solution does its listening on nested scroll events and subsequent processing on its own. Together with the snapping behavior of the AppBarLayout, this can lead to states where the app bar is expanded, but the FAB hidden. This does not bode well for confused users having no idea where the FAB has gone.
Here’s how to get the FAB to move in sync with the app bar.
Taking screenshots for the play store is boring as hell: several locales, three form factors, setting up content data for the screenshots, possibly varying by locale… For the last release of QuickFit, I decided to automate.
What you get in this post
a complete step-by-step description
in a real project
how to automate taking play store screenshots
and simultanously increase your test coverage (or get started with some UI tests at all!)
And because UI tests are needed and a happy byproduct of the process, it comes with
a very short introduction to Espresso
a very short introduction to UiAutomator
examples for testing RecyclerViews with Espresso
examples for setting up test data
I’ll walk you through my journey on automating the screenshots for the QuickFit app. It’s open source, on github and on the play store.
QuickFit now allow scheduling workouts on a weekly repeating basis!
This update is all about taking even more thought and effort out of tracking workouts with Google Fit: Set up once when you plan doing your workouts, and then get reminded via a notification to actually do it, and to enter your session into Google Fit. The focus is still on delivering minimal UI that allows the user to get all needed information as fast as possible.
I’m learning Android development, and after hacking on Watchlater for a while, it was time for the first project completely of my own, that should also allow me to try my hand at some framework component that Watchlater simply had no use for. That project lies dormant on my HDD - while it taught me about the support library, material design and all about the service lifecycle, ultimately my goal of writing the IRC client I wanted was doomed from the start. The IRC protocol simply does not allow to identify users persistently, and so my goal of presenting query conversations on the same level as channels was unreachable. So QuickFit is the much better replacement project.
For me, using Google Fit is about logging my activity, looking at the calendar view and seeing a nice, high level and getting my daily pling. So walking and cycling gets tracked nicely automatically, but of course I want to enter my other workouts too. The Google Fit app can do this, but it is a bit of a long process: select the activity from the dropdown (easy, with the favorites), enter a time span, hit submit, get the “activity is in the future” message, go back, decide on some easy-to-enter start time that will work, hit submit again. That should be easier!
There was my perfect excuse for an app that allows me to:
solve my problem
try out using the Fit API using the Play Services library
use some fully featured material design, with pretty RecyclerView and CoordinatorLayout and a FAB
The recently released Go application for controlling iButtons just got a small update: A GUI interface. It is very basic for now, but, as far as I know, the first graphical iButton interface for Linux.
I did not yet check if the App works from your Ubuntu Touch device, but since it should only depend on the installed kernel modules and working USB-to-go, I will need a physical device to actually test this. Android kernels usually do not carry the necessary drivers…
That said, the Ubuntu SDK is still at a very early stage. After years of doing Android, Ubuntu’s docs and the IDE (customized QtCreator) seem pretty rough.
You can find the project on GitHub, the license is (like the rest of go-netlink) GPL3+.
To read Maxim iButton temperature sensors in Linux is not a big problem, but needs some work. There is a kernel module / driver for the USB reader adapter. This kernel module can be accessed from user space via a special file ‘rw’ or via a Netlink interface.
The ‘rw’ method is straight forward (with the technical docs from Maxim), but has some drawbacks: The file as it is created is only accessible for root and the location of this file is depending on the unique ID, distribution and maybe even the kernel version.
The Netlink method does not have these drawbacks, but in order to use the Netlink interface, you need to learn a bit about the Linux kernel.
After reading more kernel code that I wanted and learning about how to debug a running kernel (thanks for making Systemtap), I managed to talk to the iButton. You can grab the code at GitHub, it’s license is GPL3+.
The Go packages mirror the Netlink / Connector / One-Wire layer hierarchy within the kernel. Thus, the code can also be interesting for people trying to talk with other branches on those subsystems.
Note that the implementation is not very clean yet. I get some warnings like ALLCAPS for constants. I consider myself still a Go rookie ;-)
Do you also sometimes encounter YouTube links while browsing on the way? Chances are you have the same problem as me: the YouTube app would open and instantly start buffering, consuming precious amounts of mobile data volume.
Do not want to miss the video but watch it later with unlimited internet (eg. at home)? Look no further - I just released a small app called ‘Watch Later’. It registers on YouTube http URLs and can add the video to your YouTube account’s Watch Later list.
A lot of us fell victim to the sweet poison of cloud services – me included. Services I use on a daily basis include Google Drive, Google Maps, Github and Gmail, just to name a few. Those are comfortable programs. Running in your browser, everywhere, always up-to-date. No need for backups or any maintenance at all.
What is the price of all this?
You are not only accessing data on remote systems, but you can not know what code will run over there. This is actually worse than running proprietary software on your machine, since you lost even the most basic ways of analysing what’s happening.
Also, giving away the control over your data. Most services will tell you that the data is secure there, but do not believe them! They can access the data and will give access to whoever has enough power or money.
Everyone builds their own server? This is where a lot of still active services originate from. Mail and Websites can be run by yourself, but it certainly not possible for everyone.
The last months and the success of Bitcoin let me to believe that peer-to-peer based services can help. Bitmessage tries to replace Email. There are even more ambitious ones like MaidSafe which have no lesser goal than building an Internet replacement.
These ideas are not entirely new: Freenet is around for more than a decade now. Back in 2000 there were already visionaries who knew that we would have to defend freedom on the Internet.
The currently existing/developing services might not survive the test of time and acceptance, but there are already hundreds of projects, most of these sharing concepts and code. Thus, I am confident that we will be able to replace current cloud services one-by-one with more secure peer-to-peer based alternatives.
This article documents my first hours with my Rift.
I am following Rift stuff for a couple of months now and have been very excited from the beginning. I was tempted to buy a DK1 in winter but in the end I was patient enough to wait until the DK2 pre-order. As soon as I could order and roughly knew when I would get my hands on it, I made sure I would be contract-free so I could really dive into the Rift when it arrived.
Yesterday morning I just as normal started with some Android stuff but eventually after lunch I would be to excited about the soon-to-expect UPS guy. So I could at least make sure my Windows and graphics drivers were up to date (I only use Windows for gaming so far). I also downloaded UE4 which I plan on trying out in the next couple of days.
Google Play wants you to provide a business website
German law required an ‘Impressum’
I wanted to play with express.js
Since the site only had the ‘Impressum’, express.js was obviously an overkill. The only code redirected you to /impressum. Trying new stuff and now maybe actually fill this site with some more life, I was searching for a new engine which would fit my needs.