Thuy's Blog

Thuy Trinh

Written by Thuy Trinh who lives and works in Frankfurt, Germany building robust Android apps. You should follow him on Twitter

Hack showcase: WeekPager2

October 01, 2019

A swipeable calendar view based on the new shiny ViewPager2 to navigate week by week.

Hack showcase: GPX animator

September 21, 2019

An Android app to visualize your cycle routes on Mapbox and Google Maps. Mapbox proves it's a better framework to create animations on maps.

How to test receiving events from a hot flow in Kotlin coroutines?

September 18, 2019

It's a bit more complicated than RxJava due to suspending functions but it's totally achievable with runBlockingTest.

Prefer ListAdapter

September 14, 2019

If your RecyclerView has to reflect item changes, ListAdapter may be a more suitable way to go. I'll explain with words, code and gifs.

A quick visual guide to set up Danger JS with Bitrise and GitHub

June 27, 2019

GitHub + Bitrise + Danger JS ⇒ Robust automation

Installing detekt into a multi-module Android project

June 11, 2019

I totally got lost when reading the docs of detekt. So I wrote down these steps here to hopefully help those who are on the same boat as mine.

Using BFG Repo-Cleaner to delete sensitive files from git history

May 26, 2019

Accidentally commit your release keystore to GitHub? Here is a solution.

Hack showcase: WheelPager

February 26, 2019

A quick hack with the new ViewPager2 and a little math.

A convenient RxJava utility for ViewModels: autoClear()

June 26, 2018

A quick way to dispose all RxJava subscriptions when your ViewModel is cleared.

An easy misuse of WeakReference with Kotlin property

June 17, 2018

WeakReference and some Kotlin syntactic sugars screwed me up until I decompiled into Java code to find out.

How did I get into coding?

June 09, 2018

It began with a PC, Internet and my curiosity on how things work.

Quickly get tags for logging in Kotlin

May 26, 2018

With a little Kotlin magic, we neither need nor any constant to retrieve tags.

Year in review: 2017

January 01, 2018

Hey Germany! I'm coming.

Handy TextUtils.expandTemplate()

September 10, 2017

If you want to make some sub-strings of a localized string clickable with SpannableStringBuilder, wait! There's a better way to do that.

HackerRank supports Kotlin

June 02, 2017

HackerRank + Kotlin ⟹ ❤️

Name your Gradle modules in CamelCase

January 30, 2017

Why? If you often work with terminals, this convention will make you a bit more productive.

Remember annotationProcessor?

November 20, 2016

annotationProcessor vs. apt - Working with code generation becomes a bit easier.