Category: Android

0

Android App Architecture with Koin & MVPVM

I did already talk about different architectures in Android, you can check them HERE. What I want to share with you is the latest architecture that we use inside my latest project. We call...

0

Drawing Arc on Android

This post is like a reminder for all Android devs who forgot the fact that the Canvas class has a method drawArc. Or you can use a simple library like: ArcSeekBar. It has smooth...

0

TextInputLayout set collapsed hint color

There are so many ways to try changing the TextInputLayout collapsed hint color that you can get crazy by just trying all of them. And besides that, there is not even one working as...

0

textAppearance does not work on custom TextView

Having a custom TextView is a totally normal thing these days. The problem comes when you try the following: <com.test.view.MyCustomTextView android:layout_width="wrap_content" android:layout_height="match_parent" android:textAppearance="@style/MyCustomTextAppearance" /> If your custom TextView extends from the TextView class then...

0

RxJava & LiveData combined error handling

Using RxJava with the architecture components from Google in the latest project that I was working on, it made me think how does error handling fit with the LiveData and can you keep the RxJava error...

0

Mockito anyString() vs any() – null handling

Sometimes, when I mock a method in Mockito, I used anyString instead of any and I get into a mess and my test fails. Why? given(mUserRepo.getUser(anyString(). any())).willReturn(new User()); And what will happen if mUserRepo.getUser(null);...