Ercan KÖSEOĞLURecyclerView horizontal scrolling problem in ViewPager2We want to use a horizontally scrolling RecyclerView, which is used in the ViewPager that connects to the TabLayout. But when we want to…Nov 20, 20221Nov 20, 20221
Ercan KÖSEOĞLUDifferent Build Variants (flavors) in Android!Sometimes we need a different version. We have a test API and a prod API for this example.Oct 9, 2022Oct 9, 2022
Ercan KÖSEOĞLUHow to use DiffUtils to update RecyclerView adapterLet’s say goodbye to notifyDataSetChanged() anymore.Sep 22, 2022Sep 22, 2022
Ercan KÖSEOĞLUUsing Sealed class in Android (API response handling)Sealed class is a more advanced version of enum classes. Both allow writing more readable code. While Enum class holds static values…Sep 20, 20221Sep 20, 20221
Ercan KÖSEOĞLUUsing Enums to customize the UI in Android?If we use enums correctly, we can write less code and get better results. At the same time, we prevent code pollution.Sep 18, 2022Sep 18, 2022
Ercan KÖSEOĞLUHow to get relative time differences in Kotlin?Sometimes we post something about any topic on social media platforms like Twitter, Facebook and these posts keep the time created and show…Sep 16, 2022Sep 16, 2022
Ercan KÖSEOĞLUCreate a custom UI component on Android (Kotlin)Some mobile projects are often very large and have a lot of screens. Developers often design the same screens over and over in the same…Sep 15, 2022Sep 15, 2022
Ercan KÖSEOĞLUCustomize words in TextView in AndroidSometimes, some long paragraphs can be boring when we use only one font style. Therefore, we may want to highlight words to users.Sep 14, 2022Sep 14, 2022