nowinandroid
architecture-components-samples
Our great sponsors
nowinandroid | architecture-components-samples | |
---|---|---|
58 | 26 | |
15,161 | 23,259 | |
3.3% | 0.3% | |
9.7 | 2.3 | |
5 days ago | 4 months ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nowinandroid
-
Wasn't there a full Android tutorial from Google called "Google Sunshine" weather app?
I remember it. This is a more up to date version from Google: https://github.com/android/nowinandroid There's also lots of sample apps and codelabs on https://developer.android.com/?gclid=CjwKCAjw-IWkBhBTEiwA2exyO7rWOvWd5yxCtFE5tmogy5LvA7HbxqQGpEQZz7_2ke579DPIHN06rhoCa-sQAvD_BwE&gclsrc=aw.ds
- Architecture Help
-
What's modern approach to handling Preferences (UI & Storage) in Compose?
Build your own views/screens. Abandon (pre-made) fragments as soon as you can and you will be a happier developer. Follow the Compose+ViewModel+DataStore+Repository pattern like https://github.com/android/nowinandroid/tree/main/feature/settings/src/main/java/com/google/samples/apps/nowinandroid/feature/settings
-
Why Compose?
If you are comfortable around di, mvvm take a look at 'Now in android' project. repo. Uses compose and best practices.
- Is there anywhere on github which has the latest Android Open Source Project (AOSP) files?
-
Stampeding Elephants
For people curious, the NowInAndroid repo does do this "build-logic" Gradle structure. I used that as a reference to apply this in our repo and it's been an amazing experience. Never have I had such a simple way to introduce new modules to the codebase. Effortless.
-
The Android Clean Architecture is surely so clean that I barely see any packages here
Link: https://github.com/android/nowinandroid/tree/main/core
-
just enough gradle
Look at good repos like nowinandroid
-
Measuring JDK updates for local builds in Android projects
Perfect time to show the potential wins of updating the Java version. Some companies have already moved to newer Java versions, but most of the Android projects are still building with Java 11. This article shows the results of measuring the impact of building with different JDK versions in the project nowinandroid. We'll focus on incremental changes applied to the project, simulating the local builds.
architecture-components-samples
-
I need a repo with a modern and advanced architecture for an Android project. Can you help me?
https://github.com/android/architecture-components-samples/ was historically better
-
Architecture Help
uh, maybe https://github.com/android/architecture-components-samples/tree/a87535608564103423415baddb1e586f0337be44/LiveDataSample/app/src/main/java/com/android/example/livedatabuilder
- What are some of the best open source projects for beginners, where they can learn best practices for code and also contribute to.
-
Example for restoring data when navigating to previous fragment using navigation component.
That's still an issue .
-
KoMPose Kit: KaMP Kit goes Jetpack Compose
This covers the only Loading, only Success, only Error, Loading and Success, and Loading and Error possibilities. It harkens back to the old Android architecture components samples' Resource class.
-
What is wrong with this code related to list and filter and pagination? More details in the description
I generally just advise not having an in-memory cache like this, as if you are using ViewModel, that's meant to be the cache, and repository is stateless. For some reason, people (including Google Dev Advocate Team) seem to not check the originator of the Jetpack Repository pattern which is https://github.com/android/architecture-components-samples/blob/2c19434f89e925b8bea56366faa0a197c5b90b96/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/UserRepository.kt#L40-L41
-
Do not re-fresh data when fragment tab is re-visited
I see you already have a multiple backstack handling ( judging by the gif ).If you've used approach from google advanced navigation sample, then it won't be an issue to just pop appropriate backstack upon tab reselection (if it's not the root node of the graph). That will give both recreation prevention + behaviour that you seek.
-
Tap Response Time: Jetpack Navigation 🗺
We'll implement the Tap Response Time measurement inside the Advanced Navigation Sample and focus on the navigation from the Title screen to the About screen.
-
I'm looking for a good sample codebase to review/learn from that uses MVVM, live data, compose and either dagger or hilt. Any suggestions?
Google's sample is enough good for starting. https://github.com/android/architecture-components-samples
What are some alternatives?
ivy-wallet - Ivy Wallet is an open-source money manager app for android that you can either build or download from Google Play.
workflow-kotlin - A Swift and Kotlin library for making composable state machines, and UIs driven by those state machines.
android-developer-roadmap - 🗺 The Android Developer Roadmap offers comprehensive learning paths to help you understand Android ecosystems.
compose-samples - Official Jetpack Compose samples.
ComposeCookBook - A Collection on all Jetpack compose UI elements, Layouts, Widgets and Demo screens to see it's potential
architecture-samples - A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
tivi - Tivi is a TV show tracking Android app, which connects to trakt.tv
android-mvvm-dagger-rxjava-retrofit - A sample project which demostrate use of MVVM and Dagger 2 with RxJava2 along with Retrofit
jetpack-navigation-ftue-sample - [DEMO] Sample code to display "First-Time User Experience" in a Single-Activity app using Jetpack-Navigation, NavGraphs, Dagger, SavedStateHandle, Hilt, and EventEmitter - based on the FTUE example code in simple-stack-tutorials, but originally described by Google.
Learn-Jetpack-Compose-By-Example - 🚀 This project contains various examples that show how you would do things the "Jetpack Compose" way
iosched - The Google I/O Android App
groupie - Groupie helps you display and manage complex RecyclerView layouts.