EditText in CollapsingToolbar with NestedScrollView won’t scroll when the keyboard is open

The problem What we currently have CoordinatorLayout with CollapsingToolbar inside The CollapsingToolbar has an ordinary Toolbar inside that displays text A NestedScrollView with multiple EditText fields inside of it which actually pushes the CollapsingToolbar to collapse when you try to enter something in the EditText

May 4, 2020 · 2 min · gmirchev90

Drawing an 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 animation, you can control the thumb drawable, progress background and color and many more.

May 4, 2020 · 1 min · gmirchev90

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 this textAppearance that you have set will probably not work. It works in the Preview but it is never displayed correctly on the emulator or on a real device.

May 4, 2020 · 1 min · gmirchev90

RxJava &amp; 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 handling which I find quite nice.

May 4, 2020 · 2 min · gmirchev90