Android Searchview and the magnifying icon

Just a quick note about the

Normally the widget has the magnifying on the left side if expanded. So if you do something like this:

SearchView searchView =
   (SearchView) findViewById(;

We will end up with something like this:

Android Searchview standard

If we need to manipulate the magnifying icon, we need a reference to that View:

ImageView searchViewIcon =

After that just retrieve the parent ViewGroup. It is, at least today, a LinearLayout, so just remove the View and add it again to have it at the end / right side of the SearchView.

ViewGroup linearLayoutSearchView =
   (ViewGroup) searchViewIcon.getParent();

So we have something like this:

Android Searchview right

Of course, it is a standard View, so if we need to remove it altogether, just set its properties accordingly (from here):

searchViewIcon.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT));

Jira issue filters used as notifications

Using Atlassian Jira, it is very useful to have notifications for issues, created or edited, of your projects.

Unfortunately, to enable custom notifications, you have to create a notification scheme and only an administrator can do that.

Jira, however, offers you the ability to save searches, called filters and the results can be delivered by email through subscriptions.

With the right filter and the right subscription you can set Jira to notify you via email if and only if issues of your projects are creted or edited, without clogging your inbox.

Continue reading

Text labels in Trello

In the last years, for all my projects, personal and non-personal ones, I relied on Trello, the famous dashboard tool based on cards and boards.

What I really like about Trello is how it lets you see the state of a project, from various (all) its point of views, from all its contexts, in a glimpse, in a visual way. It is beautifully designed to let you do so.

One of the habits I started to adopt is the use of text labels in my cards.

I don’t use them as a substitute of the labelling system of Trello but I find them useful as a starting point to order the cards across the lists.

Trello test board

Continue reading

Andersen Festival for Muzei – Source Code

As I wrote in the previous post, I made a plugin for the Muzei Live Wallpaper of Roman Nurik, containing the portraits of Hans Christian Andersen, made by illustrators who will held an exhibition at the Andersen Festival.

You can find the plugin in the Play Store; it is an open source project (licensed under Apache v2) and you can find the source code in my github repository.

Please note that I don’t own the portraits, so you won’t find the assets (the images) with those illustrations in the repository: it won’t compile at first but I wrote a readme in the assets folder with a list of the missing files.

Hans Christian Andersen by Matilde Martinelli

In this post I will explain some aspects about writing a plugin for Muzei.

Continue reading

Andersen Festival for Muzei

For the Andersen Festival, 14 illustrators will held an exhibit where they will show their drawings depicting 14 fables of Hans Christian Andersen.

In these days preceding the festival, they have drawn portraits of Andersen himself, to delight us during the waiting.

I liked them so much that, with the artists’ blessing, I have gathered all these portraits in a plugin for Muzei, you can find it here:

Please remember that you have to install Muzei first:

This is an initial release and not all the artists are present, yet.

I will release the source code under an open source license: if interested, check this blog for updates.

Update: read the next post for the source code!