First set the theme: <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="colorPrimaryDark">@android:color/transparent</item> </style>and layout file When people want to put some View under status bar they usually can find the answer like: “Just add “fitsSystemWindows= true” and it should work fine. -No? Then change your root view to CoordinatorLayout and apply fitsSystemWindow
When you build an Android app, user experience is something that really matters. However, animations & transitions can really be a pain to implement in Android. In this article, I will share with you my feelings about the implementation of this animation between two screens, called in Material Design a “Hierarchical transition” : Hierarchical transition ❤️Resources: 📱 You can install the final AP
My story on this project started with the management’s decision of refactoring it as developers had hit the wall with “God” Activities, static fields that held Context, endless memory leaks and “workarounds” in the code base and managers were tired of a flaky and bugged product in production. Therefore the best option seemed to refactor the project (or at this point rewrite it) to…
Updated Dagger integration to recommend using Dagger Hilt: Dependency Injection, which greatly simplifies dependency injection in ViewModels. Updated to Lifecycle ViewModel SavedState version 2.2.0. Check out my sample Github repository for a complete working example of everything I discuss here. Saved State module for ViewModel is a new library from Google that builds on top of ViewModel architec
If you’re coming from Java, you probably associate asynchronous with threads. And that means you’ve dealt with shared mutable state. You’ve spent countless hours chasing down deadlocks and race conditions. You’ve taken care when modifying shared state using locking primitives like synchronized. You might have even used higher order locking functions like Semaphores and Latches. At this point you c
Let’s consider such a case. Imagine we’re implementing the Github repositories search in a mobile app, like this: We’re definitely benefiting from RxJava here: the fact that we can debounce sending the network requests as we don’t want to do it on each letter type, and that we can save them in case the user added and removed a letter just with a couple lines of code is great. Integration with the
Recently, I created for fun a full project (backend/frontend + android app) written only with Kotlin: NoBullshit (you can read the related article right there). However, the first release was using Dagger2 for dependency injection on the Android app: Not a very Kotlin way for this project… So I decided to migrate it to Koin, a pragmatic lightweight dependency injection framework written in pure Ko
The BottomNavigationView is the latest design trend for Android development, as seen in several example apps below. Each of the tabs could have a stack of fragments shown, and user could swap between them. With this, we hope when we tap across the bottom navigation, the Fragments will be reloaded accordingly. However, if we do a simple fragment transaction, look at the result below. When we switch
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く