architecture-components-samples
architecture-components-samples copied to clipboard
Samples for Android Architecture Components.
I use the workaround for persisting multiple backstacks during navigation, which is presented in NavigationAdvancedSample. If i use CoordinatorLayout as a nav host container there are issues with width/height of...
The [GithubBrowserSample] disables the dependency injection in andrdoid tests. ``` /** * We use a separate App for tests to prevent initializing dependency injection. * * See [com.android.example.github.util.GithubTestRunner]. */ class...
I have a question. in browseSample we always `Transformations.switchMap()` to observe one input LiveData and set the value of `repoRepository.search(search)` to results. As below: ``` val results: LiveData = Transformations...
There is a sample "BasicRxJavaKotlinSample" But do we really need it if we have Kotlin Coroutines?
Having a sample project showing navigation for multiple activities would be really helpful. Right now there are only examples for single activity navigation. For example, [NavigationBasicSample](https://github.com/googlesamples/android-architecture-components/tree/master/NavigationBasicSample) could be created with...
Work Manager is designed for sync local data with backend, it is primary purpose. To sync loca data with backend we need Dao instances and NetworkService instances. So could you...
# Overview **Expected** - Saving nested LiveData values in a local unit test, and then asserting their values. **Observed** - Saving nested LiveData values in a ViewModel are observed successfully...
Tried to the NavigationExtensions.kt helper class to add navigation to BottomNavigationView, but getting kotlin.TypeCastException: null cannot be cast to non-null type androidx.navigation.fragment.NavHostFragment at com.getinfino.android.view.home.NavigationExtensionsKt$setupItemReselected$1.onNavigationItemReselected(NavigationExtensions.kt:188) Exception. The sample is working fine...
I want to update Dagger for the GithubBrowserSample. I want to update to version 2.24. 2.24 makes it simpler to understand dagger as you remove Has{Activity,Fragment,Service,ContentProvider,BroadcastReceiver} for HasAndroidInjector Among other...
I have this issue when try to compile the project Error: could not write file ScriptC_waterColorEffect.java Failed to generate class ScriptC_waterColorEffect () RSContext::reflectToJava : failed to do reflection ((null)) FAILURE:...